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

Putting a link on a button

Status
Not open for further replies.

790213

Programmer
Sep 22, 2003
50
ZA
I want to put a link on a button that works like HREF. How do I that?
 
<input type=button onclick='window.location = &quot;blah.htm&quot;'>

-kaht

banghead.gif
 
Problem is I'm using a Modal form. My URL looks something like this: document.location=&quot;\\RudolfW2K\_Projects\Test.xls&quot;

I'm exporting to an Excel file and now I want the user to be able to download the file. They don't want to use a HREF. Any Ideas. It keeps telling me that Object doesn't support this property or method.
 
Does this do what you want? ...

Code:
<button onclick=&quot;window.location = 'file:///\\RudolfW2K/\_Projects/\Test.xls';&quot;>Cleeek</button>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top