I have an iframe into which I will be loading various documents of my own creation. I would like to put a javascript back-button on these documents, which will allow the user to 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. Am I running the risk that on some browsers this button will take the user out of the page altogether?
More importantly, are there any situations where 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?
The desired behavior is:
-user navigates from google to mypage and sees document A in the iframe
-user follows a link which loads document B into the iframe
-user then selects back button on document B and document A reappears in the iframe
-user then selects back button on document A and google replaces mypage (not in the iframe)
The reason I need a non-absolute back button is that there are a large number of these documents (A, B, C, etc.) and no way of knowing the order in which they might be viewed. Document A appears initially, but it might also reappear at a later time, so it would be irregular to just leave the button off of document A.
Thanks for your thoughts.
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. Am I running the risk that on some browsers this button will take the user out of the page altogether?
More importantly, are there any situations where 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?
The desired behavior is:
-user navigates from google to mypage and sees document A in the iframe
-user follows a link which loads document B into the iframe
-user then selects back button on document B and document A reappears in the iframe
-user then selects back button on document A and google replaces mypage (not in the iframe)
The reason I need a non-absolute back button is that there are a large number of these documents (A, B, C, etc.) and no way of knowing the order in which they might be viewed. Document A appears initially, but it might also reappear at a later time, so it would be irregular to just leave the button off of document A.
Thanks for your thoughts.







