在ASP中如何控制窗口的外观

来源:百度知道 编辑:UC知道 时间:2024/06/03 20:09:05
请问在ASP编写的网页中如何控制浏览器的外观,比如不要菜单、按钮、地址栏等等,谢谢赐教!

<script language="javascript">
var height = screen.height - 50;
width = screen.width - 10;
window.open('index.jsp','','height=' + height +', width=' + width + ', top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no');
</script>

这是不可能的哦,任何网页语言都做不到。没法控制浏览器,这是肯定的。
如果你需要做的是弹窗的,可以采用上面那位仁兄的代码,只是如果你要做整站都这样的话,就要在每个页面都写,而且要有onload属性,累死你

只能用js了.