...

View Full Version : url detection



jeromepelletier
06-24-2006, 06:23 PM
I have a couple of iframes on my page, and i want to make sure they are all up including my parent, i want this so no one is opening one of the iframes without the parent being opening, would it be best to use url detection on the parents or contacting the parent, and the iframes to make sure they are all open?

If so how, if not how

Thanks.

_Aerospace_Eng_
06-24-2006, 06:37 PM
<script type="text/javascript">
if(self==parent)
{
window.location = 'framepage.html';
}
</script>
That goes in your head tags of the pages in that would be in the frame.

jeromepelletier
06-24-2006, 09:46 PM
<script type="text/javascript">
if(self==parent)
{
window.location = 'framepage.html';
}
</script>
That goes in your head tags of the pages in that would be in the frame.
And I didnt think it would be that easy XD thanks!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum