The Execute method evaluates a JavaScript expression within
the context of the currently loaded page and returns the result
synchronously. Unlike AsyncExecute, this method blocks while
waiting for the script to complete. If the web page is non-responsive,
this method will timeout after approximately two seconds. Applications
should wait for the NavigationCompleted event before invoking
script execution.
JavaScript must be enabled for scripts to execute. The
AllowScripting property must be set to True when the browser
is created. If scripting is disabled, this method will fail indicating
that the operation is not supported.
The AddStartupScript method can be used to insert JavaScript
which is executed whenever a new document is loaded.