Results 1 to 7 of 7
  1. #1
    Progger's Avatar
    Progger is offline Public Member
    Join Date
    November 2014
    Location
    New Zealand
    Posts
    1,422
    Thanks
    283
    Thanked 940 Times in 587 Posts

    Default Try this code me :)

    Hello

    Put this code on your page

    PHP Code:
    <script type="text/javascript">
    history.pushState(nullnulldocument.URL);
    window.addEventListener('popstate', function () {
        
    history.pushState(nullnulldocument.URL);
    });
    </script> 
    search your page over google,visit it and press the "back" button.

    what is happening ?

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    26,881
    Thanks
    1,845
    Thanked 7,702 Times in 4,855 Posts

    Default

    It appears to stop the session from from allowing the browser to see there were previous url's in the history.

    What would be an interesting test, is to completely clear the browser history, hit a few pages, then hits the page with that code..., leave and go elsewhere, then check the browser history after a close and reopen and see if the previous pages are in that saved browser history.

    I do not know whether the history that is null'ed is only session state or also nulls the saved history....maybe someone better with javascript knows the answer to this.

    Rick
    Universal4

  3. #3
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    26,881
    Thanks
    1,845
    Thanked 7,702 Times in 4,855 Posts

  4. #4
    Progger's Avatar
    Progger is offline Public Member
    Join Date
    November 2014
    Location
    New Zealand
    Posts
    1,422
    Thanks
    283
    Thanked 940 Times in 587 Posts

    Default

    with

    history.replaceState
    this code is it possible to change the last link ,and send the "back clicking" visitor to a random page - but only on the root domain.

    sounds cool...but not recommended

  5. #5
    allfreechips's Avatar
    allfreechips is online now Private Member
    Join Date
    August 2010
    Location
    Ohio - The taxing state
    Posts
    1,042
    Thanks
    123
    Thanked 608 Times in 359 Posts

    Default

    sounds like some code for 2 cent PPC terms
    Allfreechips online casino guide offers online casino reviews from our members. Also our exclusive No Deposit casino bonuses are always up to date. See the latest slot machine reviews at Hotslot and exclusive no deposit casino bonuses as well with a good dose of daily online gambling news to learn about pokies

  6. #6
    allfreechips's Avatar
    allfreechips is online now Private Member
    Join Date
    August 2010
    Location
    Ohio - The taxing state
    Posts
    1,042
    Thanks
    123
    Thanked 608 Times in 359 Posts

    Default

    Lol, or to keep your google bounce rate way down on your page, well played
    Allfreechips online casino guide offers online casino reviews from our members. Also our exclusive No Deposit casino bonuses are always up to date. See the latest slot machine reviews at Hotslot and exclusive no deposit casino bonuses as well with a good dose of daily online gambling news to learn about pokies

  7. #7
    Progger's Avatar
    Progger is offline Public Member
    Join Date
    November 2014
    Location
    New Zealand
    Posts
    1,422
    Thanks
    283
    Thanked 940 Times in 587 Posts

    Default

    Quote Originally Posted by allfreechips View Post
    Lol, or to keep your google bounce rate way down on your page, well played
    bingo...

    but on the end this is not really visitor friendly...

Posting Permissions

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