iframe跨域刷新

<span class="shuaxin" onclick="window.open(document.getElementById('wb_box').src,'wb_name','')"></span>

             <iframe id='wb_box' name="wb_name" width="100%" height="395"  frameborder="0" scrolling="no" src=" http://widget.weibo.com"></iframe>
 
 
为了兼容IE6就需要用innerHtml重新装载IFRMAE标签

你可能感兴趣的:(Web)