webBrowser control embedded in page doesn't get body element
-
Hi, I'm trying to get the body element of a page using a webBrowser control. Right now I'm testing in javascript to make sure i can access the body through the webBrowser control, but soon I'll create an activeX control and use the control from there. My code is: var wb = document.getElementById("wbSave"); wb.Navigate(window.location); var body= wb.Document.body; The point is I don't know why the body is always null. If I analize the Document children I see it contains the "head" element and its contents but I would expect it to contain the body as another child too, and however it doesn't. I've searched online in several forums and everybody seems to access the body element this way, I just can't. I'm completely clueless. So, please if anyone can give me any help on this, it will be appreciated. Thanks in advance
Kenia