Javascript print() Method
Javascript print( ) Definition and Usage
The print() method is used to print the contents of the current window.
Javascript print() Syntax
Javascript print( ) Example
<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>
|