Customizing Message Boxes 
    
This page demonstrates customized message boxes. Clicking the 
button below will invoke a script method that contains the code: 
    
function Button1_onclick() 
{
  alert("Button clicked"); 
}

When alert() is called, MsHtml calls the host's method IDocHostShowUI.ShowMessage(), if available, allowing the host to control how messages are displayed. In this example, the message caption is changed from "Microsoft Internet Explorer" to "MyCustomWebBrowser". See the method Form1.ShowMessage().