Link to home
Start Free TrialLog in
Avatar of ASOSWE
ASOSWE

asked on

HTML Button

I have a webpage with a button on a form, is there a way to when the user clicks on the button it will open up excel and the file located in \\wlls\208\bobby.xls.
Avatar of asafadis
asafadis
Flag of United States of America image

I'm not sure if the URL '\\wlls\208\bobby.xls' would work... but this is the idea:
<a href="\\wlls\208\bobby.xls"><button>Download Excel File!<button></a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of carlnorrbom
carlnorrbom
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michel Plungjan
asafadis: Never wrap a button in a link
Instead use a form or the onClick
@mplungjan:
the form... ok
"onclick" has the risk of not working if javascript is disabled in the client's computer.  It's an unnecessary risk.  Using a form, for example, is a perfectly javascript-independent solution that does the same thing.


why not wrap a button with a link?  just curious...
because many browsers will not understand what you click, the link or the button
Hi,

Did you manage to get this running or?

/Carl.
Avatar of ASOSWE
ASOSWE

ASKER

yes, thank you