2010-01-04 4 views
1

다른 iframe에서 하나의 iframe을 업데이트하고 싶습니다. 하나의 iframe에 다른 iframe의 내용을 업데이트해야하는 링크가 있습니다. checkresult.html에는 statusmessage.html을 업데이트해야하는 링크가 있습니다. 다른에 열을 하나의 프레임에서 링크를 원하는 경우하나의 iframe을 다른 iframe에서 업데이트 할 수 있습니까?

<table width="100%"> 
    <tr> 
    <td width="10%"> 
    <iframe id="test" src ="checkresult.html" height="1000px" width="100%" frameborder="1"> 
    </iframe > 
    </td> 
    <td align="left" width="80%"> 
    <iframe id="msgstatus" name = "test" src ="StatusMessage.html" align="left" width="100%" height="1000px" frameborder="1" > 

    </iframe></td> 
    </tr> 
    </table> 

답변

1

, 해당 링크의 target 속성에서의 다른 name 속성을 참조 할 필요가있다.

<a href="something.html" target="test">Link text</a> 
:이 경우 그래서, checkresult.html의 링크가 msgstatus 프레임에 열 test의 목표를 가지고해야합니다
관련 문제