87,910
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script language="javascript">
function openwin(url)
{
//打开模式窗口,注意模式窗口的样式
var arg=new Object();//传递进去的参数
arg.win=window;//把当前窗口的引用当参数传进去
var mydata=showModalDialog(url,arg,"dialogWidth:300px;dialogHeight:120px;center:yes;help:No;status:Yes;resizable:Yes;edge:sunken");
}
</script>
</head>
<body>
<input id="Button1" type="button" value="打开窗口" onclick='openwin("c.html")' />
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>标题页</title>
<script language=javascript>
function ReturnWin()
{
var arg=window.dialogArguments;
arg.win.openwin("http://www.baidu.com");
}
</script>
</head>
<body>
<input id="Button1" type="button" value="跳转" onclick="ReturnWin()" />
</body>
</html>