Posted By

aristoworks on 07/25/08


Tagged

iframe javascript link two change


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

inkdeep


Change Two iFrames With One Link


 / Published in: JavaScript
 

URL: http://www.aristoworks.com

This simple little snippet will allow you to change two iframes with the click of just one link.

  1. /* JAVASCRIPT CODE IN <head> */
  2. <script language="javascript">
  3. function loadTwo(iframe1URL, iframe2URL)
  4. {
  5. parent.FRAME1.location.href=iframe1URL
  6. parent.FRAME2.location.href=iframe2URL
  7. }
  8. </script>
  9.  
  10.  
  11. /* THE LINK CODE */
  12. <a href="javascript:loadTwo('special1.htm','special2.htm')">special link</a>

Report this snippet  

You need to login to post a comment.