I tried with no success:
webBrowser1.Document.ExecCommand("alert('Hello World!')", true, null);
also tried:
private void webBrowser1_DocumentCompleted(object sender
, WebBrowserDocumentCompletedEventArgs e)
{
webBrowser1.Document.InvokeScript("alert('Hello World!')");
}