<html>
<title> * emu * </title>
<SCRIPT defer>
<!--
testFrame.document.body.onclick=alert
//-->
</SCRIPT>
<frameset>
<frame name="testFrame" src="about:<html><body>test</body></html>">
</frame>
</frameset>
</html>在屏幕上点一下看看。不过IE6+SP1不支持about了......
<title> * emu * </title>
<SCRIPT defer>
<!--
testFrame.document.body.onclick=alert
//-->
</SCRIPT>
<frameset>
<frame name="testFrame" src="about:<html><body>test</body></html>">
</frame>
</frameset>
</html>在屏幕上点一下看看。不过IE6+SP1不支持about了......
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="SAPIEN Technologies PrimalSCRIPT(TM)">
<TITLE>Document Title</TITLE>
<script language="javascript">
var obj=window.open("test1.html");
function Onc()
{obj.test();}
</script>
</HEAD>
<BODY>
<input type=button value="click" onclick="Onc()">
</BODY>
</HTML>
test1.html子窗口
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="SAPIEN Technologies PrimalSCRIPT(TM)">
<TITLE>Document Title</TITLE>
<script language="javascript">
function test()
{
alert("hello");
}
</script>
</HEAD>
<BODY>
<!-- Insert HTML here -->
</BODY>
</HTML>