Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how to disable the webbrowser back button in javascript

jadixjadix Posts: 5Member
how to disable the webbrowser back button in javascript??????


can anyone help me ????


thank you,

Comments

  • zibadianzibadian Posts: 6,349Member
    : how to disable the webbrowser back button in javascript??????
    :
    :
    : can anyone help me ????
    :
    :
    : thank you,
    :
    That's impossible.
  • jadixjadix Posts: 5Member
    : : how to disable the webbrowser back button in javascript??????
    : :
    : :
    : : can anyone help me ????
    : :
    : :
    : : thank you,
    : :
    : That's impossible.

    thanks for replying .

    my case is : if the user is in a webpage and i want to prevent him from going back to the previous page..
    do u have any idea how to prevent users from doing that ????
    thanks a lot :)
  • zibadianzibadian Posts: 6,349Member
    : : : how to disable the webbrowser back button in javascript??????
    : : :
    : : :
    : : : can anyone help me ????
    : : :
    : : :
    : : : thank you,
    : : :
    : : That's impossible.
    :
    : thanks for replying .
    :
    : my case is : if the user is in a webpage and i want to prevent him
    : from going back to the previous page..
    : do u have any idea how to prevent users from doing that ????
    : thanks a lot :)
    :
    There are two ways to handle this type of situation: invisible frames or cookies.
    In case of an invisible frame, you place the script in the invisible frame and keep track of how often the page is shown. If it is shown more than the specified number, you redirect to another page.
    In case of a cookie, you use the cookie to keep track of how often the page is requested. The rest stays the same.
  • jadixjadix Posts: 5Member
    : : : : how to disable the webbrowser back button in javascript??????
    : : : :
    : : : :
    : : : : can anyone help me ????
    : : : :
    : : : :
    : : : : thank you,
    : : : :
    : : : That's impossible.
    : :
    : : thanks for replying .
    : :
    : : my case is : if the user is in a webpage and i want to prevent him
    : : from going back to the previous page..
    : : do u have any idea how to prevent users from doing that ????
    : : thanks a lot :)
    : :
    : There are two ways to handle this type of situation: invisible
    : frames or cookies.
    : In case of an invisible frame, you place the script in the invisible
    : frame and keep track of how often the page is shown. If it is shown
    : more than the specified number, you redirect to another page.
    : In case of a cookie, you use the cookie to keep track of how often
    : the page is requested. The rest stays the same.


    man about the invisible frame i ve never used it ... about cookies the idea seems fine to me and i will test. Actually, the idea was on my mind ...
    thanks man and keep in touch
    take care

  • zibadianzibadian Posts: 6,349Member
    : : : : : how to disable the webbrowser back button in javascript??????
    : : : : :
    : : : : :
    : : : : : can anyone help me ????
    : : : : :
    : : : : :
    : : : : : thank you,
    : : : : :
    : : : : That's impossible.
    : : :
    : : : thanks for replying .
    : : :
    : : : my case is : if the user is in a webpage and i want to prevent him
    : : : from going back to the previous page..
    : : : do u have any idea how to prevent users from doing that ????
    : : : thanks a lot :)
    : : :
    : : There are two ways to handle this type of situation: invisible
    : : frames or cookies.
    : : In case of an invisible frame, you place the script in the invisible
    : : frame and keep track of how often the page is shown. If it is shown
    : : more than the specified number, you redirect to another page.
    : : In case of a cookie, you use the cookie to keep track of how often
    : : the page is requested. The rest stays the same.
    :
    :
    : man about the invisible frame i ve never used it ... about cookies
    : the idea seems fine to me and i will test. Actually, the idea was on
    : my mind ...
    : thanks man and keep in touch
    : take care
    :
    :
    Invisible frame sounds like something new, but in actuality it simply is a frame with 0 height (or width) and no border:
    [code]




    [/code]
    The hidden.htm is loaded, but never seen (except when viewing the source code).
  • jadixjadix Posts: 5Member
    : : : : : : how to disable the webbrowser back button in javascript??????
    : : : : : :
    : : : : : :
    : : : : : : can anyone help me ????
    : : : : : :
    : : : : : :
    : : : : : : thank you,
    : : : : : :
    : : : : : That's impossible.
    : : : :
    : : : : thanks for replying .
    : : : :
    : : : : my case is : if the user is in a webpage and i want to prevent him
    : : : : from going back to the previous page..
    : : : : do u have any idea how to prevent users from doing that ????
    : : : : thanks a lot :)
    : : : :
    : : : There are two ways to handle this type of situation: invisible
    : : : frames or cookies.
    : : : In case of an invisible frame, you place the script in the invisible
    : : : frame and keep track of how often the page is shown. If it is shown
    : : : more than the specified number, you redirect to another page.
    : : : In case of a cookie, you use the cookie to keep track of how often
    : : : the page is requested. The rest stays the same.
    : :
    : :
    : : man about the invisible frame i ve never used it ... about cookies
    : : the idea seems fine to me and i will test. Actually, the idea was on
    : : my mind ...
    : : thanks man and keep in touch
    : : take care
    : :
    : :
    : Invisible frame sounds like something new, but in actuality it
    : simply is a frame with 0 height (or width) and no border:
    : [code]:
    :
    :
    :
    :
    : [/code]:
    : The hidden.htm is loaded, but never seen (except when viewing the
    : source code).



    yeah man i ve got the idea .....
    can i get your email account on hotmail so we can chat more freely.
    my email address at hotmail is: jadix_2003@hotmail.com
    keep in touch man

  • zibadianzibadian Posts: 6,349Member
    : : : : : : : how to disable the webbrowser back button in javascript??????
    : : : : : : :
    : : : : : : :
    : : : : : : : can anyone help me ????
    : : : : : : :
    : : : : : : :
    : : : : : : : thank you,
    : : : : : : :
    : : : : : : That's impossible.
    : : : : :
    : : : : : thanks for replying .
    : : : : :
    : : : : : my case is : if the user is in a webpage and i want to prevent him
    : : : : : from going back to the previous page..
    : : : : : do u have any idea how to prevent users from doing that ????
    : : : : : thanks a lot :)
    : : : : :
    : : : : There are two ways to handle this type of situation: invisible
    : : : : frames or cookies.
    : : : : In case of an invisible frame, you place the script in the invisible
    : : : : frame and keep track of how often the page is shown. If it is shown
    : : : : more than the specified number, you redirect to another page.
    : : : : In case of a cookie, you use the cookie to keep track of how often
    : : : : the page is requested. The rest stays the same.
    : : :
    : : :
    : : : man about the invisible frame i ve never used it ... about cookies
    : : : the idea seems fine to me and i will test. Actually, the idea was on
    : : : my mind ...
    : : : thanks man and keep in touch
    : : : take care
    : : :
    : : :
    : : Invisible frame sounds like something new, but in actuality it
    : : simply is a frame with 0 height (or width) and no border:
    : : [code]: :
    : :
    : :
    : :
    : :
    : : [/code]: :
    : : The hidden.htm is loaded, but never seen (except when viewing the
    : : source code).
    :
    :
    :
    : yeah man i ve got the idea .....
    : can i get your email account on hotmail so we can chat more freely.
    : my email address at hotmail is: jadix_2003@hotmail.com
    : keep in touch man
    :
    :
    Sorry, I don't have a hotmail account or MSN.
  • CyGuyCyGuy Posts: 312Member
    : : : : : : : how to disable the webbrowser back button in javascript??????
    : : : : : : :
    : : : : : : :
    : : : : : : : can anyone help me ????
    : : : : : : :
    : : : : : : :
    : : : : : : : thank you,
    : : : : : : :
    : : : : : : That's impossible.
    : : : : :
    : : : : : thanks for replying .
    : : : : :
    : : : : : my case is : if the user is in a webpage and i want to prevent him
    : : : : : from going back to the previous page..
    : : : : : do u have any idea how to prevent users from doing that ????
    : : : : : thanks a lot :)
    : : : : :
    : : : : There are two ways to handle this type of situation: invisible
    : : : : frames or cookies.
    : : : : In case of an invisible frame, you place the script in the invisible
    : : : : frame and keep track of how often the page is shown. If it is shown
    : : : : more than the specified number, you redirect to another page.
    : : : : In case of a cookie, you use the cookie to keep track of how often
    : : : : the page is requested. The rest stays the same.
    : : :
    : : :
    : : : man about the invisible frame i ve never used it ... about cookies
    : : : the idea seems fine to me and i will test. Actually, the idea was on
    : : : my mind ...
    : : : thanks man and keep in touch
    : : : take care
    : : :
    : : :
    : : Invisible frame sounds like something new, but in actuality it
    : : simply is a frame with 0 height (or width) and no border:
    : : [code]: :
    : :
    : :
    : :
    : :
    : : [/code]: :
    : : The hidden.htm is loaded, but never seen (except when viewing the
    : : source code).
    :
    :
    :
    : yeah man i ve got the idea .....
    : can i get your email account on hotmail so we can chat more freely.
    : my email address at hotmail is: jadix_2003@hotmail.com
    : keep in touch man
    :
    :
    just want to throw a couple of other ideas out there; these methods are considered more secure:
    1. set the .innerHTML attribute to change the content
    2. use DOM methods to modify the text and other nodes
Sign In or Register to comment.