复制代码 代码如下:
functionchange(){
vara=document.getElementById("iframea");
varb=document.getElementById("iframeb");
a.setAttribute("src","http://www.163.com");
b.setAttribute("src","http://www.sina.com");
}
复制代码 代码如下:
functionchange(){
vara=document.getElementById("iframea");
varb=document.getElementById("iframeb");
a.setAttribute("src","http://www.163.com");
b.setAttribute("src","http://www.sina.com");
}