CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    WebBrowser->Can not find javascript source

    Hi, all:

    I am using WebBrowser in my app, How can I get the full HTML source?
    I have tried webbrowser.document.body.innerHTML and outerHTML, I can
    not get the FULL HTML source, cause i can not find any javascript source
    in innerHTML or outerHTML. I am pretty sure that page contains javascript
    sources.

    Thanks in advance!


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: WebBrowser->Can not find javascript source

    I have just tried it and document.body.outerHTML did in fact return the javascript code inside that page.
    Make sure that the page contains javascript code by loading it in to the browser and "view source".

    The javascript source might stored in an external file as in
    <script language="Javascript" src="...">


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

Featured