如题
解决方案 »
- ajax,jQuery,property之间的关系
- 哪位高手帮我看一下下面这段代码!!
- 请教大家关于跑马灯的问题?
- 为什么改变不了 frame 的高度呀 5555
- 小弟的IE被恶意代码修改了,求救
- 帮忙看下我取(或匹配)文件名函数什么地方写错了?
- 超简单的问题
- 能在JS中修改<HTML>标签吗?比如给他加上xmlns:v","urn:schemas-microsoft-com:vml
- 这个正则表达式怎么起不了作用
- 在线等,急!急!急! JS or JQUERY 实现点击某一栏目,显示背景色,其它栏目不显示
- 如何用JS调用数据库信息 只显示5条信息
- 请问各位高手有没有用过dhtmlxtree的,它的节点删除和增加如何存入xml文件的?
new_window.resizeTo(screen.availWidth,screen.availHeight);
this.outerHeight=screen.availHeight;}window.maximize=fullScreen;</script> <a href='#' onClick=”window.open('http://www.yoursite.com/','newWindow','fullScreen=yes');”>Open a full-screen window</a>
moveTo(0,0);
resizeTo(screen.availwidth,screen.availheight);
if(window.dialogWidth){
window.dialogWidth = window.screen.availWidth+"px";
window.dialogHeight = window.screen.availHeight+"px";
window.dialogTop = "0px";
window.dialogLeft = "0px";
}
}
if(typeof(fs)!="undefined" && typeof(fs.opener)!="undefined"){
fs.opener.opener=null;
fs.opener.close();
}
}我要求的是是在先关闭一个窗口,在fs上面最大化...
window.opener.null;
window.close();
<head>
<script language=javascript>
function maxWin()
{
try
{
var b = top.screenLeft == 0;
var b = b && top.screen.availHeight - top.screenTop - top.body.offsetHeight - 20 == 0;
if(!b)
{
var str = '<object id=Max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
str += '<param name="Command" value="Maximize"></object>';
document.body.insertAdjacentHTML("beforeEnd", str);
document.getElementById("Max").Click();
}
}catch(e){}
}
</script>
</head>
<body onload="maxWin()" onresize="maxWin()">
</body>
</html>打开后的按钮加上
<html>
<head></head>
<script language="javascript">
function openMaxWnd(){
window.open( "test1.html",
"newwindow",
"resizable=yes,left=0,top=0,width="+(screen.availWidth - 10) +",height=" + (screen.availHeight - 30)
);
}
</script>
<body>
<input type="button" value="open" onclick="openMaxWnd()"/>
</body>
</html>
<head></head>
<script language="javascript">
function openbig(){
window.open( "test.html",
"newwindow",
"resizable=yes,left=0,top=0,width="+(screen.availWidth - 10) +",height=" + (screen.availHeight - 30)
);
}
</script>
<body>
<input type="button" value="open" onclick="openbig()"/>
</body>
</html>