【发布时间】:2014-06-13 07:04:44
【问题描述】:
我想通过单击一个按钮来更新多个 iframe,并且我不想多次编辑 src 标题...我试过这个...没用...
<script>
function setURL(url){
<%
Dim t
For i = 0 to 1
document.getElementById('frame' & t).src = url & "0" & t & ".html";
Next
>%
}
<script>
<button type="button" class="siteButton0" onclick="setURL('about')">About</button>
基本上我有frame0和frame1,想分别用about00.html和about01.html替换url。
第一篇文章...放轻松,伙计们...
【问题讨论】:
-
您使用什么服务器端语言?我建议添加该标签,以便熟悉该语言的人提供建议。
标签: html loops for-loop onclick