1
下面是我的ASP(HTML)代碼如何從JavaScript調用點擊事件?
<a id="More_Info" onclick ="window.top.location.href ='More_Info.asp?ussl=H&Start=<%=nRecCount%>&RS=<%=RecordStart%>;'" href="#">
從我的javascript我的魔杖激活onclick ="window.top.location.href ='More_Info.asp?ussl=H&Start=<%=nRecCount%>&RS=<%=RecordStart%>;'"
onclick事件......
<script type="text/javascript" >
{
//here i wand to activate the click event
document.getElementById("More_Info").onclick // Something like this
}
</script>
這是正確的答案,接受的答案應該改爲這個。 – mhenry1384 2011-07-21 18:47:12