semi-sleep

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  17 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks

该问题的出现通常是iframe中的src属性缺失引起的,解决方法如下:

1.创建一个只含有<html></html>的空白htm页面,把iframe的src属性赋值为该空白页面。
elmIfr = document.createElement("IFRAME"); elmIfr.scr="blank.html";
document.body.appendChild(elmIfr);
 

2.src = "javascript:void(0)". is working in IE and Firefox
 

3.In IE6 and Firefox, this could be fixed by src="spacer.gif" and put spacer.gif at your root. Once this image is cached at the browser and browser would not request this image and it should work irrespective of protocol.


4.src = "javascript:''", is working in IE6 SP2

posted on 2008-12-17 10:06 semi-sleep 阅读(670) 评论(0)  编辑  收藏 所属分类: howto

只有注册用户登录后才能发表评论。


网站导航: