【发布时间】:2010-11-28 16:01:46
【问题描述】:
大家好,这段代码在 IE 中有效,但在 Chrome 中无效,知道为什么吗?
<script type="text/javascript">
function fillreply(commentID){
var item = document.getElementById("replyto");
item.value=commentID;
}
</script>
...
...
<div id="makereply" class="hidden">Reply to: <input type="text" size="6"
name="replyto" readonly />
在 IE 中 javascript:fillreply(4); 可以工作,但在 chrome 中没有任何反应。
【问题讨论】:
标签: html internet-explorer google-chrome