On my three-frames website at < I want to break out of the frameset from a link in the top.html frame to my alternative site for people with small monitors who cannot see all the items on my framed navbar.
I dont want my alternative site to be in my frameset, and I copied this code from Quickstart Javascript and put it in the <HEAD> section of the home page of my alternative site < figuring it would bust the frameset.
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!--Hide script from old browsers
if (top.location !=self.location) {
top.location = self.location
}
//End hiding script from old browsers -->
</SCRIPT>
But it didnt. The Frames are still there.
What is the correct code to achieve this?
Thanks
jock
I dont want my alternative site to be in my frameset, and I copied this code from Quickstart Javascript and put it in the <HEAD> section of the home page of my alternative site < figuring it would bust the frameset.
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!--Hide script from old browsers
if (top.location !=self.location) {
top.location = self.location
}
//End hiding script from old browsers -->
</SCRIPT>
But it didnt. The Frames are still there.
What is the correct code to achieve this?
Thanks
jock