in reply to OT- HTML Page and Frame Question

You'd need JavaScript and some server side code to do this. (Well, you could duplicate the server side functionality is client side code, but that would be bad.)

First you need to detect if the page has been loaded outside the frameset. Check top.location with a regular expression to ensure it matches http://www.example.com/ (or whatever the URL of your frameset is) with either nothing following it, or just a query string.

If it fails the check you need to (still with JavaScript) set top.location to http://www.example.com/ but append a query string which includes a means to identify the URL of the page the user visited - the URL itself is a good choice. Make sure you URL encode it!

Then you need to dynamically generate your frameset. Check the query string. If no URL is included, then show the default page. If there is a URL then check that it belongs to you (this protects against pishing attacks) and then set the src attribute of the <frame> to match.

Of course this will still fail if JavaScript is not available, and you will probably annoy users who want to view a page outside your frameset, and its quite a lot of work - so you'd probably be better off just ditching the frames in favour of something less painful.