Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Keep in frame

  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Keep in frame

    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:

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- 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 -->
    </script>
    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 //

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •