After loading two frames from one link back button steps back through each one individually


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: After loading two frames from one link back button steps back through each one individually

  1. #1
    Carl Guest

    After loading two frames from one link back button steps back through each one individually


    I have loaded a banner frame and a content frame from a navigation frame using
    parent.(framename).document.location.href for both frames from the navigation
    frame. When i use the bcak button on the browser it steps back through each
    of the frames indiviually (in the order of the javascript loads).
    I have tried using the onUnload event but cannot close the other frame.
    How can i get the back button to change both frames back to their previous
    pages simultaneously.??

  2. #2
    Michael Guest

    Re: After loading two frames from one link back button steps back through each one individually


    Carl, thats exactly how the BACK button works in a frames environment. To
    get around that you would have to do one of 2 things. Either catch the click
    on the back button when on that page and use the back method of the history
    object to roll back each frame, OR....
    place code on the 2 frames that looks to see if one was rolled back and if
    so roll back the other as well.

    "Carl" <Bushbaby@btinternet.com> wrote:
    >
    >I have loaded a banner frame and a content frame from a navigation frame

    using
    >parent.(framename).document.location.href for both frames from the navigation
    >frame. When i use the bcak button on the browser it steps back through each
    >of the frames indiviually (in the order of the javascript loads).
    >I have tried using the onUnload event but cannot close the other frame.
    >How can i get the back button to change both frames back to their previous
    >pages simultaneously.??



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