window.print()
In this chapter you will learn:
Print dialog
window.print() prompts the user to print the page. The print dialog is displayed asynchronously, returning control to the script immediately.
<!DOCTYPE HTML> <!-- jav a2 s . c o m-->
<html>
<body>
<script>
window.print();
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Window