Comment out call to Sleep() and see if it helps. Is Web Browser control hosted directly on a form or something else?
You may also try different way loading of HTML
http://www.berezniker.com/content/pages/visual-foxpro/loading-html-web-browser-control-variable>The navigator is timing out, even when I increase time to 8 seconds, but only sometimes (often).
>
>What could be causing the problem? Maybe some properties are set wrong? I created the class some time ago and haven't used it much.
>
--sb--