There is a way. It is recommended that you change your connected iframe to include a file, and then remember to change the file name to shtml, or asp. The code is as follows: Copy code The code is as follows: < head> Untitled Document < ;meta http-equiv="refresh" content="3;URL=#" /> <br>function change( ){ <br>var a = document.getElementById("iframea"); <br>var b = document.getElementById("iframeb"); <br>a.setAttribute("src","http://www. 163.com"); <br>b.setAttribute("src","http://www.sina.com"); <br>} <br> >