Hello,
Thanks for the response.
1. I need to do something similar to "Save as complete web page", while downloading all images and .js and resources included in the webpage and save the HTML page with modified contents. And I need current state of javascript to be maintained in my saved .html file.
2. Here I have problem in saving .html file.
As you said i have tried to get html content as follows,
a.
document.childNodes[i].outerHTML;
, is not part of DOM standard. This maintains javascript state. But the entities like and & are also displayed.
b.
document.getElementsByTagName('html')[0].innerHTML;
also maintains state. But entities like and & are also displayed.
3. So basically i need some way to get html source, using standard DOM interface to maintain state and also which displays entities as proper characters.
Thanks in advance
[edited by: kokilakr at 7:36 am (utc) on Jun 1, 2010]