<HTML>
<HEAD>
<TITLE>open属性</TITLE>
<Script Language="JavaScript">
function New()
{
document.open();
document.writeln("<BODY BackGround='bg.jpg'>")
document.writeln("<PRE>")
document.writeln("<h2>")
document.writeln("床前明月光")
document.writeln("疑似地上霜")
document.writeln("举头望明月")
document.writeln("低头思故乡")
document.writeln("</h2>")
document.writeln("</PRE>")
}
</Script>
</HEAD>
<form Name="ThisForm">
<Input type=submit name="press" value="Open" OnClick="New()">
</form>
</BODY>
</HTML>
评论