main.htm
<input id=m>
<input onclick="window.showModalDialog('w.htm',window)" type="button" value="open">
<script>
function test() {
alert('Function!')
}
</script>
w.htm
<script>
var s=window.dialogArguments
</script>
<body>
<input onclick="s.test()" type=button value="GetFun">
<input id=m>
<input onclick="window.showModalDialog('w.htm',window)" type="button" value="open">
<script>
function test() {
alert('Function!')
}
</script>
w.htm
<script>
var s=window.dialogArguments
</script>
<body>
<input onclick="s.test()" type=button value="GetFun">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货