通过下面的例子,你可以在一个页面内完成上面的效果。 <html> <head> <script language="javascript"> function openwin() {openwindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no"; //写成一行 openwindow.document.write("<title>例子</title>" openwindow.document.write("<body bgcolor=#ffffff>" openwindow.document.write("<h1>hello!</h1>" openwindow.document.write("new window opened!" openwindow.document.write("</body>" openwindow.document.write("</html>" openwindow.document.close()}
(编辑:ASP站长网)
|