deadlock Message Board
[ December Full List | Reply ]

Re: Need JavaScript code that will ignore another script
From David A on 14 Dec '00
replying to Need JavaScript code that will "ignore" another script posted by David Northup

>Is there a JavaScript that will "turn off" or ignore a specific JavaScript in the same page?
>
>I made a frames page for a Home Owners Association that links to a local news stations weather page. In the header frame I put a small logo and a link back to the main page of the Association.
>
>http://www.bearmeadowshoa.org/weather.html
>
>If you go there you will see the header briefly, then it disappears.
>
>I discovered this script (located on the page that is the target for the main frame) that got rid of my header.
>--------------------
><SCRIPT>
>
><!--
>

>if(top!=self)
>
>top.location.href=self.location.href;
>
>//-->
>
></SCRIPT>
>--------------------
>
>Is there a script that I can put either in the header or in the master page that will ignore this script? Maybe even turn scripts off all together. (But there may be other desireable scripts elsewhere in the page.)
>
>Any thoughts would be appreciated.
>
>Thank you

That looks to me like a pretty clear sign that he doesn't want anyone linking to him in a frame.




Reply to this message

Required Details
Your name:
Subject:

Optional Details
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)

Your Message