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!

Open .pdf onClick of html submit button

Status
Not open for further replies.

lynque

IS-IT--Management
Sep 30, 2004
124
0
0
CA
Hello all,
I have a form that submits to a php mail and works just fine.
I'd like to add to the submit button an "onclick" that loads up a .pdf document as well as submit the form.

Any tips on this would be really helpful
 
You'll need Javascript. Use the Onclick event of the button to open a new page with the PDF and then proceeds to submit the form.

Code:
<input type=submit onclick="window.open('path/to/file.pdf'); return true;">



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top