javascript fullscreen全屏实现代码
<script type="text/javascript" language="javascript">
function fullscreen()
{
win = window.open("Main.aspx","_blank","resizable=yes;status=yes;toolbar=no;location=no;menubar=no;directories=no;scrollbars=no;");
window.opener=null;
window.open('','_self');
window.close();
win.moveTo(0,0);
win.resizeTo(screen.availWidth,screen.availHeight);
}
</script>
function fullscreen()
{
win = window.open("Main.aspx","_blank","resizable=yes;status=yes;toolbar=no;location=no;menubar=no;directories=no;scrollbars=no;");
window.opener=null;
window.open('','_self');
window.close();
win.moveTo(0,0);
win.resizeTo(screen.availWidth,screen.availHeight);
}
</script>