当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM print() 方法
The print() method is used to print the contents of the current window.
print()方法可用来打印当前窗口的内容
window.print() |
<html> <head> <script type="text/javascript"> function printpage() { window.print() } </script> </head> <body> <form> <input type="button" value="Print this page" onclick="printpage()"> </form> </body> </html> |
Print a page
打印页面