CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    20

    WebBrowser.Navigate("javascript: ... - when js code execution will end

    hi
    i am executing javascript code on loaded page by
    Code:
    webBrowser.Navigate("javascript: code here");
    is there a way to notify my app that javascript code execution ended ?

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: WebBrowser.Navigate("javascript: ... - when js code execution will end

    Well 2 possible ways :

    1) The WebBrowser.DocumentCompleted event
    2) The WebBrowser.ReadyState property

  3. #3
    Join Date
    Aug 2009
    Posts
    20

    Re: WebBrowser.Navigate("javascript: ... - when js code execution will end

    well actually iam using gecko browser, i tought it will have similar properties, now i know thats not true
    1 way - not working in both webbrowser and gecko
    2 there is no readystate in gecko browser, there is isBusy but its not working either,
    i was to lazy to test readystate on Webbrowser, but thx anyway

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