PDA

View Full Version : change two frames at the same time


JAVAEOC
10-29-2003, 09:58 PM
How can i change two or three or even four frames at the same time???

i know i can change one by putting the tag

target=#name

but i do not know how to target two or tree or even four frames.




____________________________________________________

if("you help"){"THANK YOU"}
else{"thanks for trying"}

:thumbsup:

Roy Sinclair
10-29-2003, 10:16 PM
<a href="newurl" target="name of most important frame to change" onclick="parent.frames['name of first frame to change'].document.location.href='newurl';parent.frames['name of second frame to change'].document.location.href='newurl';">...

You can use the code to change as many frames as you wish using the onclick event but you might meet a user with javascript disabled so make sure the most important frame gets changed via the normal mechanism and only the incidental frames are changed via the code.

JAVAEOC
10-29-2003, 11:37 PM
thanks i will try this :p