Hey-
I am coding a navigation page for accessing a number of intranet pages (content which I don't own, but need to display) and many of these pages have links with the _parent target set.
This wouldn't be a problem, but I have the content displayed in an IFRAME, and when the user clicks those "Rude Links" it makes the navigation frame disappear, and loads the page at the TOP location.
I would like to write a script that does any of the following:
A) prevents / overrides the target designation of all links for the external page in the iframe
B) intercepts the unload event, determines if there was a _parent reference, and if so ignore it
C) using nested iframes, the Javascript verifies that there is an iframe within an iframe, and if not, dynamically adds an iframe back to the page
This is kind of the reverse of all the questions I see where people want to avoid their pages being loaded by outside sources.
Your help is really appreciated,
-12Monkeys
I am coding a navigation page for accessing a number of intranet pages (content which I don't own, but need to display) and many of these pages have links with the _parent target set.
This wouldn't be a problem, but I have the content displayed in an IFRAME, and when the user clicks those "Rude Links" it makes the navigation frame disappear, and loads the page at the TOP location.
I would like to write a script that does any of the following:
A) prevents / overrides the target designation of all links for the external page in the iframe
B) intercepts the unload event, determines if there was a _parent reference, and if so ignore it
C) using nested iframes, the Javascript verifies that there is an iframe within an iframe, and if not, dynamically adds an iframe back to the page
This is kind of the reverse of all the questions I see where people want to avoid their pages being loaded by outside sources.
Your help is really appreciated,
-12Monkeys