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!

javascript to call print dialog

Status
Not open for further replies.

Jahappz

Technical User
Jun 3, 2002
133
0
0
SE
Iam looking for javascript to call the printer dialog from a button in a website.

Its a page that lists a bunch of names with a button after that says "Sign in" and when the user push the button i want the print dialog with the users Name to be printed (name tag) and after that return to the list.

Any one have anything like that?

 
Hi

Not sure if this is what you want, but I am afraid it is the maximum you can do.
Code:
<form action="#">
<input type="button" onclick="window.print()">
</form>

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top