当前位置:编程学习 > C#/ASP.NET >>

firefox中button按钮怎么响应onclick事件

如题 --------------------编程问答-------------------- function test()
{
alert('aa');
return false;
}
document.getElementById('Button1').onclick=test; --------------------编程问答-------------------- 1楼的哥们,在firefox下还是不行
--------------------编程问答-------------------- 应该好用的啊,
document.getElementById('Button1').onclick=test;这句话要放在body的onload脚本里写。 --------------------编程问答-------------------- 还有就是firefox下如果页面中其他脚本有错误可能会影响其他脚本。 --------------------编程问答-------------------- 哦那我估计懂 了。

window.event在ie 和 ff中的不同。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,