Results 1 to 5 of 5

Thread: How to change the url in the address bar with javascript?

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    580
    Vote Rating
    -1
      0  

    Default How to change the url in the address bar with javascript?

    Hi

    Is there a way to change the url in the address bar without affecting the browser history?
    YUI history manager uses the location.hash property but it adds the url+hash to the history.

    Attacking my problem from the other direction. Is there a way changing the url of an iframe without affecting the browser history?
    I want my iframe to show www.example1.com and then to change to www.example2.com.
    I tried location.href but the new page was added to the history.

    Thanks
    Last edited by mystix; 22 Aug 2007 at 8:43 AM. Reason: moved to Help from General

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    67
    Vote Rating
    0
      0  

    Default

    try window.location.replace instead, I believe this doesn't create a history entry.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    580
    Vote Rating
    -1
      0  

    Default

    It works

    Thanks!!!

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default I know this style


    I BET YOU ARE MAKING A PHISHING WEBSITE, DON'T YOU?

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •