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
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    From sidebar to main page

    I maked a sidebar voor IE with the recent topics of my site, but if you click one of the links, the page will be loaded in the sidebar.

    Now i wan't it so, that the links will be loaded in the main page (were you normally surf)

    I thought maybe i can give a name to the main page with javascript. And then i could use target="mainpage" to let the page load in the main page.

    I hope somebody can help me!


  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    881
    Thanks
    0
    Thanked 115 Times in 114 Posts
    you can give your frame a name when creating the frameset:
    <frameset>
    <frame name="sidebar" src="sidebar.htm">
    <frame name="mainpage" src="mainpage.htm">
    <framepage>

    and then refer to it with target="mainpage"
    and in JS you can refer to it with parent.mainpage.location.href='newpage.htm';


  •  

    Posting Permissions

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