View Full Version : Keep in frame

03-03-2005, 09:31 AM
when someone is clicking a link for a specific page i want that page to open but with my frame around it, a little bit like:

<!-- Original: CodeLifter.com (support@codelifter.com) -->
<!-- Web Site: http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
if (parent.location.href == self.location.href) {
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html';
// End -->

but i still want the framesets focus to be on the page i wanted to open, not like in this case, open the frameset with the startpage.

Did someone understand what i'm looking for? Hope so!

Mike //

03-03-2005, 10:02 AM
yeah, if you use the forum search, you'll find more than one example that kind of script. there's a pretty simple one that i put together in a couple of minutes, and then there's an improved version that someone put together a while after that, but i can never remember who it was.