I need to redirect the user to another page, I have used window.location.hash = “../pagePath.html”; but it does redirect to the page without firing the JavaScript code, is some jQuery Mobile solution for this? something like “ajax-false” that I can use in JS code?
Share
you need to use
whereas
will return the anchor value from the url.
for Ex.: your browser url is http://www.google.com/accounts#gmail
then if you get the window.location.hash like this
then and will return “gmail”.