Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    3
    Member #
    11252
    Hi. I'm a bit new at this so bear with me.

    I have an iframe into which I will be loading various documents of my own creation. I want to put a javascript "back" button on these documents, so that a user can return to what was previously in the iframe.

    I've tested this out on a couple of browsers with no problem but I know it is a troublesome area and want to make sure. Are there any browsers/situations where such a button might just take the user out of the page altogether?

    More importantly, are there any situations in which this could lead to the risk of loading external pages into the iframe? For example, if Bubba navigates from google to mysite, and then immediately clicks on the back button on the document in my iframe, is it possible that google might be loaded into the iframe?

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Well in that browser session, if history.length is > 0 then going to the previous page (be it yours or googles) is possible, I think

    I am not sure though as your using a frame, so maybe that frame has it's own history.

  4. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    3
    Member #
    11252
    decided to repost this with further clarification in the javascript forum...


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:54 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com