View Full Version : From sidebar to main page

10-18-2005, 04:03 PM
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!


10-18-2005, 06:14 PM
you can give your frame a name when creating the frameset:
<frame name="sidebar" src="sidebar.htm">
<frame name="mainpage" src="mainpage.htm">

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