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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO PRINT A PAGE

Status
Not open for further replies.

alexfusion

Programmer
Feb 5, 2001
94
AR
Hello Everyone:
This is a simple question.
I would like to print a html page using a javascript link.
I define a typical function including the following code:
<script language=&quot;javascript&quot;>
function printmypage()
{
window.print()
}
</script>
This works just fine but, the browser open the print option dialog.I would like to avoid this,so the visitor click on the link and the page is printed directly,not showing the printing dialog,and I can customize the printer friendly page to mi liking.
How can I solve this problem?

Thank you in advance

alexfusion

mixale@hotmail.com
 
you can't prevent the box from appearing, unless you use window apis, but then this is totally unrelated to javascript
what's more as a user i'd hate you to set my print options. Even if i knew how to do it i wouldn't tell you so, as it is very unsafe !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top