style.backgroundImage will fire onpropertychange twice
来源:互联网 发布:大连 大数据 招聘 编辑:程序博客网 时间:2024/05/28 23:21
We all know IE is weird:
<input id="mytestinput" onclick="this.style.backgroundImage='url(http://blog.csdn.net/images/authorship.gif)';" type="button" value="change background image" />
<script>
document.getElementById('mytestinput').attachEvent(
'onpropertychange', function () { alert(event.propertyName); });
</script>
click the button will alert twice.
If u set backgroundImage to 'none', it will also alert twice, however, set to ''(empty string), will only once...
- style.backgroundImage will fire onpropertychange twice
- backgroundimage
- backgroundimage
- Fire Emblem [You Will Win
- onpropertychange
- Fire!
- Fire!
- Fire!
- Fire!
- Fire
- Fire!
- Fire!
- Fire
- SDUT第一届ACM知识挑战赛Fire Emblem [You Will Win
- TWICE TEXT
- will
- will
- Idea和BackgroundImage
- Django的Ajax开发,Dojo + SAjax
- 再战SVOHOST.exe、sxs.exe和command.com
- 北京的春天
- 数学之美--防伪系统(1)
- Google Maps API 2 中文文档
- style.backgroundImage will fire onpropertychange twice
- 雅虎公司C#笔试题
- Log4J学习笔记(一)
- 多线程时要考虑以下准则
- CSDN的博客好慢
- 某公司招收.net高级程序员的试卷
- 密码学的发展方向与最新进展
- 使用Apache Jmeter测试JSP应用程序性能
- .Net 面试题