开发者

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank"开发者_开发百科 recognized without error across all browsers? Is it valid to give an IFrame an empty src?


How about

src="javascript: ;"

or

src="javascript:void(0)"

This should work fine with IE and Firefox

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜