I would like to move the iframe from d1 to d2, without having its contents refreshed.
<div id="d1">
<iframe src="http://www.website.com/"></iframe>
<div id="d2"></div>
</div>
I have tried the getElementById()
with appendChild()
but it ends up deleting everything.