为什么 onunload="window.open('新窗口的文件名.htm');"在火狐中不起作用呢 为什么 onunload="window.open('新窗口的文件名.htm');"在火狐中不起作用呢?求各位前辈解我心中疑惑? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title>标题</title><script type="text/javascript">function ShowWindow(){ document.getElementById("divDialog").style.display = "";}function CloseWindow(){ document.getElementById("divDialog").style.display = "none"; //这里写你要的赋值操作,比如将textBox1值赋为"已设置" document.getElementById("textBox1").value = "已设置";}</script></head><body><!--这个DIV就是弹出的窗口,按下面的参数设置修改一下就可以了--><div id="divDialog" style="display:none;position:absolute;top:距窗口顶部的距离px;left:距窗口左边的距离px;background:url('图片地址');width:图片宽度px;height:图片高度px;"><input type="button" value="单击我关闭对话框" onclick="CloseWindow()" /></div><input type="button" value="单击我显对话框" onclick="ShowWindow();" /> <input type="text" id="textBox1" value="" /></body></html>或者参考 如何提高程序运行速度 关于.Net的一些疑问! 购物车代码 请大家帮忙分析SQL不能访问的怪事!谢谢(在线等) 脚本问题 求C#.net整套源码系统! 帮下小弟 不用Panel控件,怎样实现两个独立窗体的数据互传 asp.net mvc4 webapi post的问题 每个站点设个域名 该怎样设 将整个网站转换为静态网站的方案 关闭子页面刷新父页面
<head>
<title>
标题
</title><script type="text/javascript">
function ShowWindow()
{
document.getElementById("divDialog").style.display = "";
}
function CloseWindow()
{
document.getElementById("divDialog").style.display = "none";
//这里写你要的赋值操作,比如将textBox1值赋为"已设置"
document.getElementById("textBox1").value = "已设置";
}
</script>
</head>
<body>
<!--
这个DIV就是弹出的窗口,按下面的参数设置修改一下就可以了
-->
<div id="divDialog" style="display:none;position:absolute;top:距窗口顶部的距离px;left:距窗口左边的距离px;background:url('图片地址');width:图片宽度px;height:图片高度px;">
<input type="button" value="单击我关闭对话框" onclick="CloseWindow()" />
</div><input type="button" value="单击我显对话框" onclick="ShowWindow();" /> <input type="text" id="textBox1" value="" /></body>
</html>
或者
参考