net_lover(孟子E章)等高手,请问如何控制浏览器的最大化按钮? <script>window.open("somepage.htm","","width=100,height=100,resizable=0")</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我试了,resizable=0只能控制边框不能拉动,但还可最大化和恢复,我想使网页固定大小,不让其最大化。 无边的页面就是用open方法打开一个全屏窗口,然后用resizeTo方法将窗口变化到你所需要的尺寸,这时就会看到一个没有标题栏的窗口,一般还会给这个窗口加上一个"人造的"标题栏,并设定拖放事件,使其看起来更逼真。以上是我对孟老大的注释。其实还可以使用window.showmodalDialog或者window.showmodelessDialog方法打开一个页面,不仅可以没有最大最小按钮,还没有右键菜单和不相应IE快捷键。 <html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language = javascript>function openw(popUpURL){var ie = false; var ns = false;if(parseInt(navigator.appVersion) >= 4){if(navigator.appName.indexOf("Microsoft") != -1) ie = true;if(navigator.appName.indexOf("Netscape") != -1) ns = true;}if (ie){var popUpSizeX=200;var popUpSizeY=200;var popUpLocationX=300;var popUpLocationY=200;var splashWin = window.open("",'','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');splashWin.resizeTo(popUpSizeX,popUpSizeY);splashWin.moveTo(popUpLocationX,popUpLocationY); splashWin.location=popUpURL;splashWin.focus();}if(ns){window.open(popUpURL,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");}}</script></head><body bgcolor="#ffffff" topmargin="0" marginwidth="0" marginheight="0" leftmargin="0"><a href="#" onClick="openw('http://go.163.com/~colorweb')">打开</a></body></html> window.open("",'','fullscreen,toolbar,location,directories,status,menubar,scrollbars,resizable,copyhistory,width,height')//重置大小 在js对象的方法里面使用setTimeout报错?、在线等 求助!如何显示多行排列的图片[Javascript] 关于Ext.window和iframe的问题 解决的话赏50!!! 如何实现点击Button 实现上传文件的功能, 如何当输入框a选择不同时,选择不同的select下拉框呢? javascript 怎样判断鼠标是否在UL控件上? 一个简单的问题求解! 怎么做出一个淡化出错的弹出窗口,消失也让它慢慢减淡至消失? js广告代码如何很好的管理呢? 求解,哪位朋友知道用Jscript能够作出背景图片透明渐变 怎么模拟鼠标点击一个按扭 一个表单提交的问题,谢谢了
以上是我对孟老大的注释。其实还可以使用window.showmodalDialog或者window.showmodelessDialog方法打开一个页面,不仅可以没有最大最小按钮,还没有右键菜单和不相应IE快捷键。
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language = javascript>
function openw(popUpURL){
var ie = false;
var ns = false;
if(parseInt(navigator.appVersion) >= 4){
if(navigator.appName.indexOf("Microsoft") != -1) ie = true;
if(navigator.appName.indexOf("Netscape") != -1) ns = true;
}
if (ie){
var popUpSizeX=200;
var popUpSizeY=200;
var popUpLocationX=300;
var popUpLocationY=200;
var splashWin = window.open("",'','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL;
splashWin.focus();
}
if(ns){window.open(popUpURL,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");}
}
</script></head>
<body bgcolor="#ffffff" topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">
<a href="#" onClick="openw('http://go.163.com/~colorweb')">打开</a>
</body></html>
fullscreen,
toolbar,
location,
directories,
status,
menubar,
scrollbars,
resizable,
copyhistory,
width,
height
')//重置大小