Load Page Into Frame From Non-Frames Page (JavaScript)
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]
Posted by Morgan on July 16, 1999 at 13:1:58:
I've got a splash page with icons to link to category pages, and a frames page with a small navbar on top and the body frame on bottom. I'm trying to use JavaScript to load whatever page is chosen on the splash page in the body frame of the frames page. So far I've been able to do nothing but load the frames page; if I try to stick < onclick=" . . . ;top.body_frame.document.src='category/index.htm';" > in, it gives me an error because it looks for the 'body_frame' object on the current page, not the next one. I kind of expected it, but I know no way around it.My code: <a href="#" onclick="javascript:window.location.href='frame.htm';top.body_frame.document.src='category/index.htm';" onmouseover=" . . . ;" onmouseout=" . . . ;"> Thanks for your help. - Morgan
Follow Ups:
|