<body bgcolor='#FF6040'>
<p>
<h3>Test Document</h3>
This document allows you to explore the functionality of this
extended version of CHtmlView. To see the behaviour of some
properties may require you to drag & drop another document
into this view.
</p>
<p>
<input type='text' name='text1' size='35'>
<input type='button' name='text1' value='a button' onclick="fnOnClick()" >
</p>
</body>
</html>
可能弹出得是IE窗口,而不是对话框,你误以为他不起作用了
look at the IWebBrowser2::Silent property
OnAmbient method to catch DISPID_AMBIENT_DLCONTROL
try implementing
IDocHostShowUI::ShowMessage() and just returing S_OK.