Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Break INTO frames...

Status
Not open for further replies.
May 9, 2000
446
GB
Hi I know you can use:

<script language=&quot;Javascript&quot;>
<!--
if (window!= top)
top.location.href=location.href
//-->
</script>

to break out of frames but I have a page that i don't want people to view without the correct frame. Is there some way I can change the above code to say if the page is opened directly in a browser it will redirect to the frames page?????

Cheers in advance...
 
Have you tried...

if ( window.parent === window ) window.location.href = &quot;my frame url&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top