51CTO技术论坛 » Web开发 » javascript-弹出窗口选择其内容并返回的例子        上一帖     下一帖    查看完整版本

页: [1]

zc1362008-7-15 07:42
javascript-弹出窗口选择其内容并返回的例子

主页面代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>[url=http://www.zc36.net]网页技术[/url] [url]http://www.zc36.net[/url]</title>
</head>
<body>
<table>
<tbody>
  <tr>
    <td>&nbsp;</td>
  </tr></tbody>
</table>
<script  language="JavaScript">
var arr = showModalDialog("zc36.htm", "", "dialogWidth:40.08em; dialogHeight:15.83em; status:0");
if (arr != null){
alert(arr);
}
</script>
</body>
</html>
弹出窗口页面的代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>网页技术 [url]http://zc36.net[/url]</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
    <td><a href="#" >[url=http://www.zc36.net]网页技术[/url]</a></td>
    <td><a href="#" >czc136#hotmail.com</a></td>
</tr>
</table>
</body>
</html>
<script>
function check(s){
window.returnValue =s;
window.opener=null;
window.close();
}
</script>
转自:[url=http://www.zc36.net/c/javascript/08/192/789524_1.htm]http://www.zc36.net/c/javascript/08/192/789524_1.htm[/url]



相关文章:
DVBBS php2.0 topicother.php 注入漏洞
u盘可以装系统吗?
求!!动网论坛全部教程
js checkbox控制算法问题
大家都在用什么做ajax啊

查看完整版本: javascript-弹出窗口选择其内容并返回的例子


Powered by 51CTO.COM