在签入WebBrowser控件应用时,下面的VBScript没有问题,而JS就有问题!
function testJava()
{
var i;
i = window.external.set_property("yinjing", "2");
//alert(i);
}
</script>
<script language="vbscript">
sub add_modify_onclick()

i=window.external.set_property("yin", "jinguo")
if i <> 0 then
MsgBox "Successfully inserted property '" & "'" , 0 , ""
else
MsgBox "Property '" & property_name.value & "' could not be inserted", 0, ""
end if
end sub
</script>
<body>
<form name="form1" method="post" action="">
<table>
<tr>
   <td><input type="submit" name="Submit1" value="Submit1"></td>
<td><input type="submit" name="add_modify" value="Submit2"></td>
<td><input type="button" name="test" value="Submit3"onclick="testJava()"></td>
</tr></form>
出现访问违例。