Is an empty iframe src valid?

testndtv picture testndtv · May 10, 2011 · Viewed 86.6k times · Source

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..

So is <iframe src="#" /> valid OR do I need to use something else like javascript:;, etc

Answer

ariel picture ariel · May 10, 2011

just <iframe src='about:blank'></iframe>