Results 1 to 7 of 7

Thread: WebBrowser innerHTML manipulation...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    WebBrowser innerHTML manipulation...

    Is it possible to manipulate an InnerHTML location in a HTML document through the WebBrowser control,. rather than internally on the page itself?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    so you want to mega combobulate the megatrixel now?

    what do you mean by manipulating?
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    This is in an HTML page:
    VB Code:
    1. onMouseOver="desc.innerHTML='Some Text'"
    2. onMouseOut="desc.innerText='&nbsp'">
    It is part of a link. When someone mousesover the link, this text appears here:
    VB Code:
    1. <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...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    do you mean changing the current html code in the browser w/o changing the actual html file?
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  5. #5

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Yeah, basically.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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,"<",">")
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  7. #7

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    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...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width