Javascript 问题
懒得起名字 2012-03-22 04:08:51 一段JS
function cl() {
window.parent.document.getElementById('txtDepartment').value = document.getElementById('Text1').value;
}
}在html中调用 可以正常运行,但是到CS 后台代码中 调用
ClientScript.RegisterStartupScript(GetType(), "method", "<script>cl();</script>");
就报 window.document.getElementById('txtDepartment').value 为空或者不是对象
怎么回事啊?