87,914
社区成员
发帖
与我相关
我的任务
分享
<iframe name="new" id="new" style="border:1px solid red;width:500px;height:200px;"> </iframe>
<a href="login.htm" id="other" target="new">login </a>
...
<a href="link.htm" onclick="op()" id="mine" target="new">open </a>
<script type="text/javascript">
function op(){
document.getElementById('other').href='logout.htm';
document.getElementById('other').innerHTML ='logout';
}
</script>