Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: No History option ...

  1. #1
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default No History option ...

    Is there anyway to make the browser "to forget" a certain page?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If you use window.location.replace("newurl") to go to a new page, that one will replace the current in the history. That's as close to it as you can get.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Where do I put that code ?
    Thank you.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    it's javascript.

    <body onLoad="here">

    or <script...>
    ....
    here (in "function()")
    ...
    </script>

    and use <body onLoad="function()">


    or, a link, image, etc.. but body is best.



    (Twey, not positive on that code, be sure to correct me if I'm wrong.... but I think it's ok)

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Where do I put that code ?
    Depends how you want the user to navigate to the next page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Isn't this on the current page to make it masked? onload...?
    Or, maybe i'm missing something.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Or, maybe i'm missing something.
    I think you are, but I'm not sure exactly what
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You're saying your 'script' would be used on page A in a link, then you would click that link to visit page B, and page B would be the one not recorded in the history?
    Something like that?

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, page A would be the one replaced in the history by page B.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ok.

    So... this would be activated by click a link?

    Isn't the desire to replace the history entry of the current page so the VIEWER can't return... meaning you don't expect them to click a link for that.
    Security shouldn't be a user choice to click.

    Or, does this work by when you click to page B, it GOES there, but also calls the old history entry the net page?
    I guess that could work... but you'd have to rely on the visitor clicking a link on your page, not just leaving it bed, or closing it, or using the address bar to go somewhere else, or, even, hitting back.

Bookmarks

Posting Permissions

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