I'm working on javascript/jquery in a php based site, and I have to redirect the page upon an event in the page.
lets say, on clicking the button "click me" in "page1.php", the page should be redirected to "page2.php". This redirection has to be done using javascript/ jquery. Both pages are in the same folder, and the redirection code should use 'RELATIVE LINKS'.
Now, I am able to redirect if I give the absolute link to page2.php, but could someone let me know how to do the same with a relative link?
something like:
window.location.href = 'page2.php';
thanks.
hrefwith script, if necessary?