~asp innerHTML为什么不生效

十万火急~asp innerHTML为什么不生效不想用js onclick事件,想直接通过ASP response.write输出%response.W

十万火急~asp innerHTML为什么不生效
不想用js onclick事件,想直接通过ASP response.write输出


<%response.Write("<script>document.getElementById('OK').innerHTML='<span style='color:#00F; font-weight:bold;'>OK</span>'</script>")%>
<span id="OK"></span>

[解决办法]
<span id="OK"></span>
<%response.Write("<script>document.getElementById('OK').innerHTML='<span style=\'color:#00F; font-weight:bold;\'>OK</span>';</script>")%>

引号错误。