Disabling Back Button and Refresh Buttons

Discussion in 'Software' started by tessythampan, Aug 4, 2006.

  1. tessythampan

    tessythampan

    Joined:
    Jul 25, 2006
    Messages:
    5
    Likes Received:
    0
    Hi friends,
    Just help me out to disable Back button and refres buttons in web pages. I am devloping a software using ASP.net.

    Thanks in advance.
    Tessy.
     
    tessythampan, Aug 4, 2006
    #1
    1. Advertisements

  2. tessythampan

    fred5152

    Joined:
    Dec 18, 2007
    Messages:
    12
    Likes Received:
    0
    Hi for disabling the back button

    include the code below

    Simply put this javascript between your <head></head tags, and you're done:

    <script type="text/javascript" language="javascript">
    javascript:window.history.forward(1);
    </script>

    Go it from another forum lontime ago ,saved it for myself
     
    fred5152, Dec 18, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.