Pir
01-28-2003, 02:12 PM
Hi,
I would like to change two frames with one click. I only found out how Joe on HTMLGoodies did it. He used a form and a button, but I want to do it with a link:
<a class="2" href="home.html" target="main">Home</a>
and I want to be able to influce the appearance of the link with a css.
This is the code I found if I wanted a button :
<FORM>
<INPUT TYPE="button" Value="Change Two Frames at Once"
onClick="parent.frames[2].location='foto.html';
parent.frames[3].location='menufoto.html';">
</FORM>
Is there a possibility to adapt the code or use any different code to realize the chage of 2 frames at once.
Thanks for your reply
Pir
I would like to change two frames with one click. I only found out how Joe on HTMLGoodies did it. He used a form and a button, but I want to do it with a link:
<a class="2" href="home.html" target="main">Home</a>
and I want to be able to influce the appearance of the link with a css.
This is the code I found if I wanted a button :
<FORM>
<INPUT TYPE="button" Value="Change Two Frames at Once"
onClick="parent.frames[2].location='foto.html';
parent.frames[3].location='menufoto.html';">
</FORM>
Is there a possibility to adapt the code or use any different code to realize the chage of 2 frames at once.
Thanks for your reply
Pir