<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>1233214</title>
<script type="text/javascript">
function Jz() {
window.showModalDialog("xxoo", "jsj", 'dialogHeight:250px;dialogWidth:300px;center:yes;status:no');
}
</script>
</head>
<body onload="Jz()">
<form id="form1" runat="server" >
<div>
</div>
</form>
</body>
</html>
我用 showModalDialog 传递页面路径的时候 不能写上当前页面,这样会造成死循环 不停的执行 onload事件,求高人指点,求教育...
解决方案 »
- 献个丑 初学jQuery写了一个插件 用于倒计时的
- JS 给table外面加层DIV
- var t=false,current; 后面的current是什么意思?
- 在form表单中,单击confirm的“取消”后,form表单依然执行,如何解决?
- 怎么js设置Img的宽度,和高度?
- 很急,在线等.如何在页面的右下缓慢的弹出一个小方框的信息,应该是Div的
- 新手请教
- 求助,如何完全保存网页?
- 为什么我用document.documentElement.outerhtml得到的源文件有时不全
- 如何让这两个计时器同时使用起来???急急急~
- 求 去掉 和 添加 console.log 的正则
- 各位大侠,下面代码<select>标签中的onChange函数为何没响应
<script type="text/javascript">(function(){
var l=window.location.href;
if(l.indexOf("NewWindow")==-1){
if(l.indexOf("?")>-1){
l=l+"&NewWindow="+Math.random();
}else{
l=l+"?NewWindow="+Math.random();
}
window.showModalDialog(l,'newwindow');
window.open('', '_self');
window.close();
}
})()
</script>
写在文档的头上,不是很完美,但是可以用