-----035-Window-Move.html-----
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 5 <title>标题</title> 6 </head> 7 <body> 8 <script type="text/javascript"> 9 function openNew() 10 { 11 wnd = window.open("", "", "width=200 height=160 location=no"); 12 wnd.document.write("新窗口"); 13 wnd.document.write("<center><button onclick='moveBy(100, 100)'>移动(100, 100)</button></center><center><button onclick='moveTo(100, 100)'>移动到(100, 100)</button></center>"); 14 } 15 </script> 16 <h1>创建新窗口</h1> 17 <button onclick="openNew()">创建新窗口</button> 18 <button onclick="print()">打印窗口</button> 19 </body> 20 </html>