I'm wondering if there's a way (javascript or else) to make a link have 2 actions at the same time. For example, when I use a link on a frame, it changes (loads) 2 other frames simultaneously ? I'm not sure I'm explaining myself clearly but...
I'm wondering if there's a way (javascript or else) to make a link have 2 actions at the same time. For example, when I use a link on a frame, it changes (loads) 2 other frames simultaneously ? I'm not sure I'm explaining myself clearly but...
Certainly. The general technique looks like this:
As you can see, simply seperate the functions you want to invoke with a semicolon. Regarding your question on loading two frames with one link, the following tutorial explains it best: http://www.javascriptkit.com/javatut...oframes1.shtmlCode:<a href="#" onClick="dothis(); dothat(); return false">A link</a>
I have also found that using
<
a href="#" on Click="dothis(), dothat()">A link</a>
also works in some browsers. i would stick to using a ; instead of a ,
<a href="#" onClick="dothis(); dothat(); return false">A link</a>
Bookmarks