i want to know about relative url in javascript . i want to open a new window .
my current url is : http://1and2/test/test2/default.aspx
and i want to open this url : http://1and2/test/test3/index.html
location.host returns 1and2 .
and i dont know in which directory my application is running on the server .
( /test or /test/test3 or something else )
how can i find the root of my application url in javascript ?
i want to know about relative url in javascript . i want to open a new window . my current url is : http://1and2/test/test2/default.aspx
and i want to open this url : http://1and2/test/test3/index.html
location.host returns 1and2 . and i dont know in which directory my application is running on the server . ( /test or /test/test3 or something else ) how can i find the root of my application url in javascript ?