javascript设置asp.net程序开始运行时ie最大化显示
时间:2010-08-29 来源:yush
将以下js语言放到起始页面的head中,然后运行,就做到了程序起始运行时最大化显示。
<script type="text/javascript" language="JavaScript1.2">
<!--
// Auto maximize window script - By Nick Lowe ([email protected])
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>