I have an iframe on a page that I need to initially have a blank src for, as I eventually set the src with javascript.
I had been using a however have encountered an issue in Safari and Chrome where this loads a duplicate copy of my page within the iframe.
I read about “about:blank” in another question, however I’ve read that IE9 sends a null request to the server when you use this as the src. I’ve also yet to find anything listing this src as standards compliant.
Does anyone have an alternative to “about:blank” that they use to create an empty iframe?
about:blankis the way to do it. Alternately, you could just insert the whole<iframe>element with JavaScript later, and don’t worry about a valid “empty”src.