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

using a button as a link

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
hallo,
I would like to use a button to download a pdf, instead of a link. How can I do it? thanks
 
thanks.
...eehm, how do I get in another window (target="_blank")?
 
To stay with the same structure,
Code:
<input type="button" onclick="window.open('myfile.pdf', '_blank');" value="Get My PDF" />
I however, would rather use a regular anchor and style it so it would look like a button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top