I have a div on a page, like:
<div>
<p>This is a div, but it should be an iframe.</p>
<p>Here, all kind of stuff could be inside.</p>
<table>
<tr>
<td>something</td>
</tr>
</table>
</div>
I want to replace the div with an iframe, to get something like:
<iframe>
<html><body>
<p>This is a div, but it should be an iframe.</p>
<p>Here, all kind of stuff could be inside.</p>
<table>
<tr>
<td>something</td>
</tr>
</table>
</body></html>
</iframe>
How can it be done? A pure javascript-solution would be best, but a solution with jquery of ExtJs would be fine as well.
overflow: autoon the<div>?src? (I suspect that isn't the case). Could you clarify what you actually want, and let us know what problem you are trying to solve with this approach?