Below script prints the window page by simple javascript function.
See below :
Related Articles
How to Do Debugging in Javascript
Below is the way to do debugging in Javascript to get typeof objForm, forms.elements and form value.
How to handle the F11 key without showing Full Screen mode using Javascript
You can handle the F11 key using Javascript function, check the below javascript function.
How to Refresh Page OnClick Using Javascript
Click to Add another Staff