Two Windows for a HTML file


執行範例

程式內容

<html>

<head>
<title>Window Test</title>
<Script LANGUAGE=JavaScript>
   function OpenWindows(){
   newWIN=window.open("","","height=200,width=400")
   newWIN.document.write("<HTML><HEAD><TITLE>WINDOW TEST</TITLE></HEAD>")
   newWIN.document.write("<BODY>TEST</BODY></HTML>")
   newWIN.document.close()
   }
</Script>
</HEAD>

<body onLoad=OpenWindows()>
<a href="test2.htm" target=_blank>TRY....</a>
</body>
</html>