Take the 2-minute tour ×

I am trying to open a file share link from the window.open ....... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

share|improve this question
What do you mean by file share link? –  Pekka 웃 Aug 2 '10 at 16:51
PDFfile on a share drive –  Grasshopper Aug 2 '10 at 16:54
please show a full example. We're not psychics. –  Pekka 웃 Aug 2 '10 at 16:58
Ok i solved it by adding file:// to share drive path –  Grasshopper Aug 2 '10 at 18:14

1 Answer 1

up vote 0 down vote accepted


share|improve this answer
While we're glad you found a solution, can you please elaborate on the original problem so that others might find your question and solution useful? –  Levi Hackwith Aug 2 '10 at 19:05
I am sorry if i was not clear. I was trying to open the fileshare link ex. var str= \\servername\fildername\x.pdf from window.open(str) in a javasscript since i am not using file protocal file: the new window is opening with localhost/vdir \\servername\fildername\x.pdf which is going no where . Adding file: before str had solved my issue Thanks –  Grasshopper Aug 2 '10 at 20:00

Your Answer


