frames...

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
GeKI
Forum Newbie
Posts: 1
Joined: Wed Aug 13, 2003 6:25 am

frames...

Post by GeKI »

Hello,

I have three separate frames named 'top' , 'left' and 'content' and a main page that incluse those frames. On the 'left' frame I have a link. How can I do, that when I click the link, on the 'top' and 'content' frame to load two different pages in the same time. A small source code in HTML or/and PHP will help. Thanks in advance.

Marius.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Code: Select all

<SCRIPT language="JavaScript">
<!--hide
function change2()
&#123;
parent.left_frame.location="foo.htm";
parent.right_frame.location="bar.htm";
&#125;
//-->
</SCRIPT>
then...

Code: Select all

<A HREF="javascript:change2()">Change 2 Frames</A>
Weber
Forum Newbie
Posts: 14
Joined: Fri Aug 15, 2003 6:01 am

Post by Weber »

Hello,
Use frames ... is awful. If you know french and read him, go to this website :
http://www.openweb.eu.org/
In this website, on a article, they explain what frames isn't good :
- a lot of bugs
- not "accessible"
As the conséquently, don't use frames. If you know php, use pseudo-frames, it's better.
Good bye
Weber
Post Reply