Don't run frame location javascript code

A

alpim

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

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

htdocs\index.html
'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.html'>
</body>
</html>

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top