Thread: frames
View Single Post
  #2 (permalink)  
Old 01-31-2002, 06:06 AM
Till's Avatar
Till Till is offline
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
To get you started, here's a little JavaScript

Code:
<script language="JavaScript">
<!--
if (top.location == self.location) {
top.location = "http://www.users.bigpond.com/nannynap";
}
//-->
</script>
Place that between <head> and </head> on each of your pages and try it out.

What you could do now is rewrite the JavaScript so it always load the page someone went to without your frameset inside the frame. The people won't loose track of where they are now. (Ahem, web-usability...) But I won't tell now.

We have some tutorials on HTMLcenter that tell you the usage of location in JavaScript. Try it out, if you encounter any problems, feel free to ask.

_till
Reply With Quote