How can you change two frames

Results 1 to 2 of 2

Thread: How can you change two frames

  1. #1
    Join Date
    Dec 1969

    Default How can you change two frames

    I have a web page with three frames. Is there a way that I can change the contents of two frames when I click on a link in the third frame?

  2. #2
    Join Date
    Dec 1969

    Default RE: How can you change two frames

    Yep, but it&#039;s a client-side issue. I&#039;d use Javascript if I were you, something like this:<BR><BR>in your third frame link:<BR>&#060;a href="" onclick="javascript:changeframe()"&#062;<BR><BR>an d your javascript:<BR>&#060;script&#062;<BR>function changeframe() {<BR> window.frames[0].location("")<BR>}<BR>&#060;/script&#062;<BR><BR>that&#039;ll change your first frame to .. if you want to change the second frame use frames[1].<BR><BR>I hope that makes sense. There&#039;s probably loads on the net about it on javascript sites.<BR><BR>Having said that I should kick myself for encouraging you to use frames: they&#039;re bad, don&#039;t do it :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts