Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Print Screen script

Status
Not open for further replies.

elan

IS-IT--Management
Apr 3, 2001
24
0
0
AU
I have an application that requires the viewer to be able to "print screen".

Is it possible to have a javascript script that does the same as ctrl/p?

with thanks
 
Code:
<html><head><title>TITLE</title>
<style type="text/css">
body     {font:normal normal 1.0em arial, sans-serif}
h1       {font:normal bold 1.4em Georgia, serif}
h2       {font:normal bold 1.2em Georgia, serif}
h3       {font:normal bold 1.0em Georgia, serif}
@media print {
body     {background-color:none}
.noprint {display:none}
}
</style></head><body>
<h1>TITLE
</h1><h3>by: AUTHOR
<span class="noprint">
<input type="button" onClick="window.print()" value="Print" />
</span></h3><hr />
PAGE DATA
<br /><br /></body></html>

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top