Link to home
Start Free TrialLog in
Avatar of rangers99
rangers99

asked on

Trying to open window with relative url using Javascript

Im wanting to use javascript to open a new window. The pdf file to be opened in the new window is in the directory "Doc" relative to the current directory. Should the following code work or am I doing something wrong?

window.open('Docs\\charing.pdf')

ASKER CERTIFIED SOLUTION
Avatar of stanscott2
stanscott2

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