IE webBrower 组件DocumentText如何设置值
在页面定义 WebBrowser 调用IE WebBrowser 组件
<object id= "WebBrowser" width=200 height=200 classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> </object>
<script type="text/javascript">
function get() {
var web = document.getElementById("WebBrowser");
alert(web);
web.DocumentText= "<html><body>Please enter your name:<br/>" +
"<input type='text' name='userName'/><br/>" +
"<a href='http://www.microsoft.com'>continue</a>" +
"</body></html>";
</script>
然后通过按钮给WebBrowser.DocumentText传值!
为什么页面显示不出结果来!
请高手帮忙解决。