是否为空iframe src有效? [英] Is an empty iframe src valid?
本文介绍了是否为空iframe src有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想一个iframe最初有 src
为空,然后一旦页面加载;调用JS函数,然后将 src
值设置为实际值。
I want an iframe to initially have src
as blank and then once the page loads; call a JS function and then set the src
value to an actual one..
因此是< iframe src =#/>
valid或者我需要使用 javascript:;
p>
So is <iframe src="#" />
valid OR do I need to use something else like javascript:;
, etc
推荐答案
只是< iframe src ='about:blank'>< / iframe>
这篇关于是否为空iframe src有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文