DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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.??



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links