codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Button link to excel  peths0 at 01:46 on Wednesday, January 21, 2009
 

Hi,

I appoligise upfront but I am very new to HTML so please be patient with me.

I have a HTML web page with a button on it. I need this button to open an excel file when clicked (in the application rather than the browser).

My current code for the button is as follows:

<form onMouseover="change('blue')" onMouseout="change('red')">
<input
type="button"
value="Total Project Variances"
style="WIDTH: 200px; background-color: #F0F0F0; color: #660000"
onClick="/forum/file/transfp01ProjectsProjectCalculator.xls">
</form>

For some reason the button does not open the excel file. If I change it to <a href> it will open. But then it opens in the browser, not the application.

So I guess I have two questions:
1. Can the button open the excel file when clicked?
2. Can the excel file be opend within Microsoft Excel rather than the browser?

Thanks in advance....










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Animation works on IE but not on Firefox
•  Re: Add an OnChange event to an ASP page
•  Re: combined 3 functions that do the same thing
•  Button link to excel
•  parser project needs c++ programmer
•  Simple Thumbnail Solution
•  Re: hex code of a number
•  sql query
•  Re: number of regex match


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009