-----035-Window-Move.html-----
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>标题</title> </head> <body> <script type="text/javascript"> function openNew() { wnd = window.open("", "", "width=200 height=160 location=no"); wnd.document.write("新窗口"); wnd.document.write("<center><button onclick='moveBy(100, 100)'>移动(100, 100)</button></center><center><button onclick='moveTo(100, 100)'>移动到(100, 100)</button></center>"); } </script> <h1>创建新窗口</h1> <button onclick="openNew()">创建新窗口</button> <button onclick="print()">打印窗口</button> </body> </html>