HTML DOM print() Method
Complete Window Object Reference
Definition and Usage
The print() method is used to print the contents of the current window.
Syntax
Example
<html>
<head>
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>
</head>
<body>
<input type="button" value="Print this page"
onclick="printpage()" />
</body>
</html>
|
Try-It-Yourself Demos
Print a page
Complete Window Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|