posted 16 years ago
Hi
My actual requirement is, I want to open an excel file separately invoking MSExcel. And I need to do it only through Javascript or Html code.
I tried the below code to open excel file. But it's opening the Excel file in IE and that too with an error saying like "file not found in the path."
- Can anyone please let me know what is the issue with the below code
and how to open an Excel file outside of IE through Javascript or html code?
1. This code us in the HEAD part of HTML document:
function win() {
window.open("xyz.xls",null,"height=200,width=200,left=80,top=80,location=no");
}
2. This code us in the BODY part of HTML document:
& It a href="C:\MainDocs\AllReports\Documents\xyz.xls" target="_blank"
onKlick= "javascript:win();" & It Open Here / & It
& It - is used for angle brackets
Thanks in advance for your time and help.