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!

why is it????? can open file using < a href, but not javascript

Status
Not open for further replies.

faithful1

Programmer
Sep 27, 2002
49
US
Hello, I'm going crazy trying to figure this one out. Any help would be appreciated.

I can open up a local file using <a href="\\servername\sharename\filename"

however, when I pass this to javascript, trying to do a window.open("\\servername\sharename\filename") I get file not found.

The reason I want to open in a new window is to hide the address and title bars. Also, I've tried to send the local path of the file only to receive access denied errors. the part I don't understand, is why when using an anchor tag, I can open the file without any issues, but when using javascript, it seems I may have some permission issues.

Any help is appreciated!!!! Thanks!
 
This is more appropiate to ask in the javascript (forum216)


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top