I need to load an html page inside a div in the following pseudo page:
<html> <head></head> <style> body { background-color: yellow; } </style> <body> <div style="display:none"> <html> <head></head> <style> body { background-color: blue; } </style> <body> <div style="display:none"> ... </div> </body> </html> </div> </body> </html> What naturally happens in this code is that the background will turn blue, as it is being changed in the middle of the page. Is there a way to isolate this div? So it would act similarly to an iframe. The content inside the div is stored in a variable, so I think I cannot use a frame, as the html code is not stored in a file to use it as a source.
Thank you!
<html>to (and including)<body>as well as the closing</body></html>first.