Results 1 to 10 of 10

Thread: Disable IE back & Forward buttons.

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2003
    Location
    Bangalore
    Posts
    47

    Disable IE back & Forward buttons.

    I am developing ASp.net application.ineed to Disable Internet Explorer Back And Forward buttons in application.Can any body help me how to do it.?


    Thanks
    Satish

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Disable IE back & Forward buttons.

    You can use javascript's location.replace method so that the URLs are not maintained in history.

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2003
    Location
    Bangalore
    Posts
    47

    Re: Disable IE back & Forward buttons.

    Can you give me piece of code .how to do it..

    infact i have written like this
    location.replace(URL)
    but it is not working.I have around 8 pages in Intranet application.My requirment is allpages shoud not allow Browser back & farword button.Buttons should be disable.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Disable IE back & Forward buttons.

    document.location.replace('http://www.mendhak.com/');

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2003
    Location
    Bangalore
    Posts
    47

    Re: Disable IE back & Forward buttons.

    If im moving from page A.aspx to B.Aspx, then where i have to keep this .i think in B.Aspx to avoid Back button.Then how abt farword button?

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Disable IE back & Forward buttons.

    {{EDITED}}
    Last edited by mendhak; Jun 25th, 2005 at 03:37 AM.

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 2003
    Location
    Bangalore
    Posts
    47

    Re: Disable IE back & Forward buttons.

    Then how to solve it?I want disable back & forward buttons in all my pages.

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Disable IE back & Forward buttons.

    So put it in the link on page 1

  9. #9

    Thread Starter
    Member
    Join Date
    Jan 2003
    Location
    Bangalore
    Posts
    47

    Re: Disable IE back & Forward buttons.

    In My application there is no links.And Links not required in my application accroding client requirements

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Disable IE back & Forward buttons.

    What on earth are you trying to do then?

Posting Permissions

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



Click Here to Expand Forum to Full Width