document.write("關閉")

1 OpenWindow=window.open("""newwin""height=250, width=250,toolbar=no ,scrollbars="+scroll+",menubar=no"); 
 2  OpenWindow.document.write("<HTML>");
 3  OpenWindow.document.write("<TITLE>例子</TITLE>"); 
 4  OpenWindow.document.write("<BODY BGCOLOR=#ffffff>");
 5  OpenWindow.document.write("<h1>Hello!</h1>");
 6  OpenWindow.document.write("New window opened!");
 7  OpenWindow.document.write("<FORM> ");
 8  OpenWindow.document.write("<INPUT TYPE='BUTTON' VALUE='關閉' onClick='window.close();'>"); 
 9  OpenWindow.document.write("</FORM>");
10
11  OpenWindow.document.write("</BODY>");
12  OpenWindow.document.write("</HTML>");
13  OpenWindow.document.close();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章