View Single Post
Old 04-18-2001, 02:05 PM  
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Create your site in frames. Then your URL remains the same at all times, no matter what links people click on. That is - for any pages that do not open in a new window. Therefore if people try to bookmark it, they will always bookmark the main page.

But, this is not enough, because people can make your link open in a new window, and then bookmark it from here. So what you need to do is force any page that should only open in a frame to bump you back to the main frame if it is ever loaded in a window by itself.

The code to do this is:

Place this code on any page that should never open in a new window:

<pre>
if (top == self) window.alert("This is an inside frame, you are being sent to the front page.");
if (top == self) top.location.href = "index.html";
</pre>

(I'm having trouble getting the code to display even with the pre and code tags, so let's see if this will work... place the above code inside javascript tags)

This code will send any page that contains this javascript code to the index.html page. Change it as you desire.

Hope this helps.


------------------
Juge - [email protected]
- Juge's Bikini and Thong Page
- Juge's Weekly Wallpaper
- Daily Bikini Babe

Need FREE CONTENT?

[This message has been edited by Juge (edited 04-18-2001).]
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote