Using Javascript's Location Object to Work with URLs

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

28-Jul-08 00:00
This is a forum topic for discussing the article "Using Javascript's Location Object to Work with URLs":

http://www.elated.com/articles/using-javascripts-location-object-to-work-with-urls/

Learn how to use the JavaScript Location object to read and change URLs, as well as how to reload (or refresh) the page.
08-Feb-12 20:52
Hi, thanks for the article. Is there any way to essentially combine the replace and reload functions? I need to force the page to reload and land on a specific anchor tag.
15-Feb-12 02:57
@valestudios: Could you not just use replace() to set the new URL (with your anchor hash appended), then call reload() straight afterwards to reload the entire page?

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated