title: Using JavaScript to change the URL used when a page is bookmarked
body: <p><a href="http://en.wikipedia.org/wiki/JavaScript" rel="nofollow noreferrer">JavaScript</a> doesn't allow you to update <code>window.location</code> without triggering a reload.  While I agree with this policy in principle (it shouldn't be possible to visit my website and have JavaScript change the location bar to read <code>www.yourbankingsite.com</code>,) I believe that it should be possible to change <code>www.foo.org/index</code> to <code>www.foo.org/help</code>.</p>
  
  <p>The only reason I care about this is for bookmarking.  I'm working on a photo browser, and when a user is previewing a particular image, I want that image to be the default if they should bookmark that page.  For example, if they are viewing <code>foo.org/preview/images0-30</code> and they click on image #15, that image is expanded to a medium-sized view.  If they then bookmark the page, I want the bookmark URL to be <code>foo.org/preview/images0-30/active15</code>.</p>
  
  <p>Any thoughts, or is there a security barrier on this one as well?  I can certainly understand the same policy being applied here, but one can dream.</p>