Don't run frame location javascript code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alpim

    Don't run frame location javascript code

    Hi everbody,
    I am seaching a code for that problem?
    htdocs\iframe.h tml <--- This file is include with <iframe
    src='iframe.htm l'in index.html

    'iframe.html' tiny source code is:
    <html>
    <head>
    <script>
    if(self!=top) top.location=se lf.location;
    </script>
    </head>
    <body>
    </body>
    </html>

    htdocs\index.ht ml
    'index.html' tiny source code is:
    <html>
    <head>
    <script>
    //How to don't change or not detect top location
    </script>
    </head>
    <body>
    <iframe name='iframe' src='iframe.htm l'>
    </body>
    </html>

    Thanks.
  • Randy Webb

    #2
    Re: Don't run frame location javascript code

    alpim said the following on 2/12/2008 2:42 PM:
    Hi everbody,
    I am seaching a code for that problem?
    For what problem?
    htdocs\iframe.h tml <--- This file is include with <iframe
    src='iframe.htm l'in index.html
    >
    'iframe.html' tiny source code is:
    <html>
    <head>
    <script>
    if(self!=top) top.location=se lf.location;
    It is called "frame buster code".

    What's the question?

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

    Comment

    Working...