正文

JavaScript open()的使用.2005-09-18 17:16:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/elva6401/4938.html

分享到:

 <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>

阅读(5948) | 评论(2)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册