UserControl.Parent.Script.Proc ("some msg !")
function Proc(msg) { alert(msg); }    
上面这样调用是可以的!但是如果把js代码改成下面这样就会出错。function Proc(){
    alert(document.getElementById("msg").innerHTML);}错误信息:
    运行时错误'-2147352319(80020101):Automation错误'
注:网页中有msg元素。在网页中用js测试时都能正常运行,所以代码书写上没有任何问题。
这是为什么呢?谢谢