+ -
当前位置:首页 → 问答吧 → 求助:FireFox下按钮onclick事件不触发

求助:FireFox下按钮onclick事件不触发

时间:2010-10-09

来源:互联网

1、<input id="Button1" type="button" value="复制选中的链接1" onclick = "othercopy('frmResourceslist','otherReCkbxItem')"/>
2、<asp:Button ID="btnCopy" runat="server" Text="复制选中的链接" CssClass = "ImgBtn_Small7" OnClientClick = "othercopy('frmResourceslist','otherReCkbxItem')" />

2种方式在FireFox下都不会触发js的othercopy函数。
请问怎么回事呢?

作者: liuyangxp1   发布时间: 2010-10-09

可以触发的,是你的其他脚本出了问题导致这里失效

HTML code
<input id="Button1" type="button" value="复制选中的链接1" onclick = "othercopy('frmResourceslist','otherReCkbxItem')"/>
<script>
    function othercopy(a,b)
    {
        alert(a)
        }
        </script>

作者: net_lover   发布时间: 2010-10-09

检查下你引用的JS 脚本,

作者: wkang201   发布时间: 2010-10-09