Jul 14, 2004 #1 2cxc Programmer Joined Aug 29, 2003 Messages 245 Location 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>
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>
Jul 14, 2004 #2 pixl8r Programmer Joined Aug 9, 2001 Messages 1,487 Location US 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! Upvote 0 Downvote
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!