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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A.S. a frame buster

Status
Not open for further replies.

2cxc

Programmer
Aug 29, 2003
245
CA
How can the following JS be used in a getURL statement? OR how can the frame buster be written in A.S.

<script type="text/javascript">
<!--
if (parent.frames.length > 0)
{parent.location.href = location.href;}
-->
</script>
 
In the parent web page create a JS function:

Code:
<script language = javascript>
function bustFrame(){
   <!--
   if (parent.frames.length > 0)
   {parent.location.href = location.href;}
   -->
}
</script>

Actionscript:

Code:
getURL("javascript:frameBuster();");

Hope it helps!

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top