I’m trying to load a local web page executing:
var html = document.open('google.html');
document.documentElement.innerHTML = html;
It loads the page but it’s not well formatted and images won’t display. How could I load the entire contents?
Thanks
If you want to replace the content of the page by another one, simply do
If you want to open a local page named
google.htmldoThis will ensure that linked resources can be loaded as the relative paths will be accorded to the location of the page. Don’t change the content yourself.