怎样将页面的工具栏和地址栏去掉 window.open('page.html','newwindow','height=150,width=300,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no') 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在窗体的html代码的<head></head>中间加入如下脚本程序: <script language='jscript'> if (window.name != 'notool') { window.open(location.href,'notool','toolbar=0'); window.opener = null; window.close(); } </script> 上面的脚本不能改变大小,看看下面的脚本: <script language='jscript'> if (window.name != 'notool') { window.open(location.href,'notool','resizable=yes','toolbar=no'); window.opener=null; window.close(); } </script> 这样就可以改变大小了。 <script language="javascript"> function openwindow(aspx){ now = new Date s=now.getFullYear() +now.getMonth() +now.getDay() +now.getHours() +now.getMinutes() +now.getMilliseconds (); aspx=aspx+'?T='+s; var win=window.open (aspx, 'window', 'height=700, width=1015, top=0, left=0,toolbar=no, menubar=no, resizable=no, scrollbars=no,location=no, status=yes'); window.opener ='MailAdmin'; win.focus (); window.close ();} </script><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>未命名頁面</title> </head><body onLoad="openwindow('Default.aspx')"> 这个正则怎么写??? 同个解决方案,不同项目间的Cookies如何获取 NHibernate的问题 asp.net如何定义正则表达式对象,并获取匹配结果?? 安装msdn帮助文档的问题? dataset奇怪的问题 请教大侠们如何在用户按后退后清空表单的数据! 请问如何先进行Forms认证,再进行Windows集成认证? 问一个关于生成静态页面的问题 datagrid与数据库的问题(100)(各位帮帮忙) 怎样在网页上接收客户端(winForm)上传来的流数据??? asp.net(VB)如何获取浏览者的MAC地址
<script language='jscript'>
if (window.name != 'notool')
{
window.open(location.href,'notool','toolbar=0');
window.opener = null; window.close();
}
</script>
上面的脚本不能改变大小,看看下面的脚本:
<script language='jscript'>
if (window.name != 'notool')
{
window.open(location.href,'notool','resizable=yes','toolbar=no');
window.opener=null; window.close();
}
</script>
这样就可以改变大小了。
function openwindow(aspx)
{
now = new Date
s=now.getFullYear()
+now.getMonth()
+now.getDay()
+now.getHours()
+now.getMinutes()
+now.getMilliseconds (); aspx=aspx+'?T='+s;
var win=window.open (aspx, 'window',
'height=700, width=1015, top=0, left=0,toolbar=no, menubar=no, resizable=no, scrollbars=no,location=no, status=yes');
window.opener ='MailAdmin';
win.focus ();
window.close ();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>未命名頁面</title>
</head>
<body onLoad="openwindow('Default.aspx')">