a.htm<html>
<head>
<title>New Page 1</title>
<script>
function win_open()
{
new_open=window.open('b.htm','','height=200,width=200')
new_open.focus();
}
</script>
</head>
<body>
<input type="button" onClick="win_open()">
</body>
</html>
*******************************
b.htm<html>
<head>
<title>New Page 2</title>
<script>
function close_win()
{ c_win.close()
}
</script>
</head>
<body onBlur="this.focus()">
<form method="POST" action="" webbot-action="">
<p><input type="button" value="关闭" name="B3" onClick="close_win()"></p>
</form></body>
</html>
<head>
<title>New Page 1</title>
<script>
function win_open()
{
new_open=window.open('b.htm','','height=200,width=200')
new_open.focus();
}
</script>
</head>
<body>
<input type="button" onClick="win_open()">
</body>
</html>
*******************************
b.htm<html>
<head>
<title>New Page 2</title>
<script>
function close_win()
{ c_win.close()
}
</script>
</head>
<body onBlur="this.focus()">
<form method="POST" action="" webbot-action="">
<p><input type="button" value="关闭" name="B3" onClick="close_win()"></p>
</form></body>
</html>
解决方案 »
- 如何让程序自动利用某网站的搜索功能??未提供API情况下
- webwork框架下js添加table的行的问题
- 请梅花兄指教!
- js中怎么样才能在建立表格的时候每次点击按钮只建立一行一列元素而不是整个行或整个列
- 小妹请各位高手帮帮忙,多谢!!怎样能实现定时自动下载服务器上的xml文件?
- 使用函数检测文件是否存在的问题?
- 表单检验的问题
- 表单内有五个输入框,A,B,C,D,E,ABCD的值为两位小数,点击按钮,E的值为A+B+C+D,保留一位小数
- ☆☆☆☆☆哈,,刚想到的。。以后不用为ID的分配发傻了。。
- flex弹出的panel定位与滚动条的关系
- 请问高手:下拉菜单?
- 我想实现outlookbar如何做?有没有现成的代码看看?在线等
winstr = winstr +"confirmdialog.jsp?yhbh="+yhbh;
var sizestr = "";
sizestr ="dialogheight=550px;dialogwidth=450px;status=no"var _return=window.showModalDialog(winstr,"",sizestr);
<script language=javascript>
showModalDialog("http://www.chinanews.com.cn","","status:no;resizable:no;help:no;dialogHeight:220px;dialogWidth:450px;");</script>
详情清看
http://www.csdn.net/Develop/read_article.asp?id=15113