Printing or closing a window  

Helping others realize their vision.

 

Copyright 1996-2015 Pelt Industries.
All Rights Reserved.

 

   Logout  
 

Back
Next

Home

About Us
News
Info Center
PC Medic
Automation
Training
Products
Services
Contents
Support
Search
Contact us

 


Printing or closing the current browser window

To create buttons to print the current window or close the current window, use the following HTML code:

<font face='Arial,Helvetica' size=1>
<script language="javascript">if(window.print) document.write("<a href='javascript:window.print()'>Print</a>&nbsp; &nbsp; &nbsp; ");</script>
<a href="javascript:window.close()">Close this window</a></font>

Will display the links below:

Close this window

When you press the "Print" button, a dialog box will be popped up in Internet Explorer for printing.
When you press the "Close this window" button, a dialog box will popup in Internet Explorer asking for permission to close the window.

 

 

For questions, problems or suggestions on this web site please contact our webmaster Markus Pelt
Copyright 1996-2008 Pelt Industries. All Rights Reserved.
Last modified: March 26, 2015