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!

Submit button that will print the page on the same click

Status
Not open for further replies.

SmurfyUK

Technical User
Nov 28, 2002
13
0
0
GB
Basically I have a webform done with the webbot code that comes in fronpage.
I need to submit the form by email which works fine but I want to add something in that line of script to print the form at the same time.

I thought of adding onClick="window.print()" in the normall line of script frontpage adds ... so it becomes this
<input type="submit" value="Submit" onClick="window.print()" name="B1"><input type="reset" value="Reset" name="B2">

Problem is I am not at work so I cant test it and my isp doesnt have server extensions ... anyone know if this would work and if not is there a way of doing it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top