Allright, even if it's OT ....
Many ways to handle it, first would be to add a function within the frameset which handles redirects to the frames:
<script language="javascript"> function handleFrameRedirect ( frame , url ) { document.frames[ frame ].document.location.href = url ; } </script>
Within the frame you use
<script language="javascript"> parent.handleFrameRedirect( <framename> , <url> ); </script>
Another way is calling this directly within the frame:
<script language="javascript"> parent.document.frames[ <framename> ].document.location.href = <url> ; </script>
-- red
Robert Sossomon wrote:
I have two frames (A and main) When I pull up one page it reloads main with the full page, however what I need the system to do when I click off that page is to jump to main.html and load item.html in the top.
Main.html currently loads 2 other pages at the beginning.
I have tried to jump them in this order, but it does not seem to be working: //Call the main page echo '<script language="javascript">parent.main.location.href ="main.html";</script>'; //Open the next two pages I need in them echo '<script language="javascript">parent.B.location.href ="item.html";</script>'; echo '<script language="javascript">parent.C.location.href ="cart.html";</script>';
TIA!
Robert
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php