Is it possible to manipulate an InnerHTML location in a HTML document through the WebBrowser control,. rather than internally on the page itself?
Printable View
Is it possible to manipulate an InnerHTML location in a HTML document through the WebBrowser control,. rather than internally on the page itself?
so you want to mega combobulate the megatrixel now? :rolleyes:
what do you mean by manipulating?
This is in an HTML page:
It is part of a link. When someone mousesover the link, this text appears here:VB Code:
onMouseOver="desc.innerHTML='Some Text'" onMouseOut="desc.innerText=' '">
VB Code:
<b ID=desc>'Some text' would appear here</b>
I want to be able to change the InnerHTML of locations like this, through VB code, if that is possible. It means I can write far more dynamic web pages for what I am working on now. But, I can't work out how to do it...
do you mean changing the current html code in the browser w/o changing the actual html file?
Yeah, basically.
as long as the webbrowser had already visited a site (like about:blank) this would work:
Webbrowser1.document.body.innerhtml = replace(Webbrowser1.document.body.innerhtml,"<",">")
Hmmm... that may work, but it's pretty inflexible and hard to manage. It means I've got to keep track fo what innerHTML changes have been made constantly... which I don't really want to do - too painful...