只能是移动
window.moveTo(-4,-120)
a.resizeTo(screen.Width+10,screen.Height+170)或着<script>
var a = window.open("about:blank","","fullscreen=yes")
self.opener=null
self.close()
a.moveTo(0,0)
a.resizeTo(screen.Width,screen.Height)
a.focus();
a.location='http://lucky.myrice.com'
a.document.body.style.overflow = "hidden"
</script>
window.moveTo(-4,-120)
a.resizeTo(screen.Width+10,screen.Height+170)或着<script>
var a = window.open("about:blank","","fullscreen=yes")
self.opener=null
self.close()
a.moveTo(0,0)
a.resizeTo(screen.Width,screen.Height)
a.focus();
a.location='http://lucky.myrice.com'
a.document.body.style.overflow = "hidden"
</script>
<script>
self.moveTo(-5,-118)
self.resizeTo(screen.Width+30,screen.Height+140)
</script>
<body bgcolor=red oncontextmenu="return false;">
<p>测试!!
</body>
</HTML>
<SCRIPT language="JavaScript">
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","fullscreen=yes")
a.location = window.location.href
window.opener=null
window.close()
}
toFull();
</SCRIPT>
<html>
<body>
//在这儿填写具体内容
<input type=button value=关闭 onclick=window.close()>
</body>
</html>
我想问下,如果要保留最上边的TITLE显示和最小最大化按钮,该怎么做呢?
就是达到这样的效果
window.open('test.asp','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600');
据说要JAVASCRIPT签名,该怎么做啊?谢谢您们!!!
据说要JAVASCRIPT签名,该怎么做啊?谢谢您们!!!
据说要JAVASCRIPT签名,该怎么做啊?谢谢您们!!!
<param name="Command" value="Close">
</object>
无提示关闭
<script>hhctrl.Click()</script>
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
a.location = window.location.href
window.opener=null
window.close()
}
toFull();
</SCRIPT>
<html>
<body>
//在这儿填写具体内容
<input type=button value=关闭 onclick=window.close()>
</body>
</html>
<object id=hhctrl classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
替换掉对应位置的
window.close()
为
hhctrl.Click()
<param name="Command" value="Close">
</object>
<SCRIPT language="JavaScript">
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
a.location = window.location.href
window.opener=null
hhctrl.Click()
//window.close()
}
toFull();
</SCRIPT>
<html>
<body>
//在这儿填写具体内容
<input type=button value=关闭 onclick=window.close()>
</body>
</html>是这样吗?可没关掉啊,两个窗口都在啊,我哪里错了吗?
你要把 <input type=button value=关闭 onclick=window.close()>
改为 <input type=button value=关闭 onclick=hhctrl.Click()>