在ie中使用window.frames["Iframe1"].document.location="";无任何问题,可在谷歌中出现location未定义错误

其真正原因还在浏览器的内核不一样,参照:http://blog.csdn.net/lzy_1515/article/details/6045629

所以将iframe的id和name设成一样的即可

<iframe frameborder="0" id="Iframe1" name="Iframe1" scrolling="yes" src="/maintenance/vehicle/EvaluationImgUrl.aspx"
                        style="visibility: inherit; width: 319px; z-index: 1; height: 350px;"></iframe>

 

 

相关文章:

  • 2021-06-27
  • 2022-02-13
  • 2021-05-18
  • 2021-06-08
  • 2021-07-27
  • 2021-11-10
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-04-10
  • 2021-09-25
相关资源
相似解决方案