Clear page if Back/Forward buttons of Browser used


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Clear page if Back/Forward buttons of Browser used

  1. #1
    KAJ Guest

    Clear page if Back/Forward buttons of Browser used


    hi

    I have a simple ASP application

    In page 1 I retreive some information in 3 textboxes
    I submit this information to page 2 using a form.

    In page 2 I display information in 2 text boxes from the database based on
    information in page 1

    The problem is when the user uses the Back and Forward buttons of the Browser
    he is able to view the information that was entered earlier. How do we prevent
    this.

    Thanks in advance
    KAJ


  2. #2
    Anurag Guest

    Re: Clear page if Back/Forward buttons of Browser used


    Hi

    Add following code to the body tag of page1

    <Body onLoad="document.forms[0].reset();">

    HTH,
    Anurag


    "KAJ" <koshy@truckracers.com> wrote:
    >
    >hi
    >
    >I have a simple ASP application
    >
    >In page 1 I retreive some information in 3 textboxes
    >I submit this information to page 2 using a form.
    >
    >In page 2 I display information in 2 text boxes from the database based

    on
    >information in page 1
    >
    >The problem is when the user uses the Back and Forward buttons of the Browser
    >he is able to view the information that was entered earlier. How do we prevent
    >this.
    >
    >Thanks in advance
    >KAJ
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center