JavaScript -- Window-Move,Print

-----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>

JavaScript -- Window-Move,Print

上一篇:WiFi-ESP8266入门http(3-4)网页一键配网(1若为普通wifi直连 2若为西电网页认证自动网页post请求连接)+网页按钮灯控+MQTT通信


下一篇:firefox浏览器live http headers无法使用