如何在打开网站时自定义IE的大小? 我想在用户在打开网站时定制IE的大小有什么办法吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 windows.open新窗口,可以调整成除全屏以外的任何大小。win2000及以前可以调整为全屏,winxp sp2及以后无法调整为全屏 按照指定大小打开窗口;<script language="javascript"> function openWindow() { var strURL; strURL = "XXX.htm"; if (document.all.length > 0) { window.opener = true; } window.opener = window.open(strURL,"main","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizeable=no,width=screen.availWidth,height=screen.availHeight,top=0,left=0"); window.opener = null; window.close();}openWindow();</script>调整窗口的位置:在strURL这个页面里,<script language="javascript">setTimeout('top.moveTo(0,0),top.resizeTo(screen.availWidth,screen.availHeight)');</script> window.open定义的时候把窗口定义到最大,不要标题栏、工具栏、地址栏、状态栏属性设为no就可以吧 求教 如何实现老板键功能 maskedtextbox全选问题 DevExpress 皮肤样式问题 关于xp xp2,win2000 安装fw3.5? C# 移除制定字符串 override datagrid 的edit() 要怎么获得选定网格的值? 我想问问那个可用分和专家分是用来干什么的? C# XmlTextReader怎么读指定的xml节点 请教:新手问题 100分相送!!!c#怎么控制excel的format? 如何让TreeView的一个节点呈选择状态(获得焦点,而不是复选状态) “自定义控件”和“用户组件”的区别是什么?
win2000及以前可以调整为全屏,winxp sp2及以后无法调整为全屏
<script language="javascript">
function openWindow()
{
var strURL; strURL = "XXX.htm"; if (document.all.length > 0)
{
window.opener = true;
} window.opener = window.open(strURL,"main","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizeable=no,width=screen.availWidth,height=screen.availHeight,top=0,left=0"); window.opener = null;
window.close();
}openWindow();</script>调整窗口的位置:
在strURL这个页面里,
<script language="javascript">
setTimeout('top.moveTo(0,0),top.resizeTo(screen.availWidth,screen.availHeight)');
</script>
定义的时候把窗口定义到最大,不要标题栏、工具栏、地址栏、状态栏属性设为no
就可以吧