IE与FireFox在开发中的区别。。。不整理了,有jQuery就够了。。
2006-03-16 17:56
405 查看
问题 | IE | FireFox |
document.form.item | document.formName.item("itemName") | document.formName.elements["elementName"] |
event | window.event | 在事件发生的现场使用即onMouseDown(enent); |
HTML 对象的 id 作为对象名的问题 | 可以直按使用id.value | 用document.getElementById("idName") |
event.x 与 event.y 问题 | event.x event.y | event.pageX event.pageY |
body 对象 | 必须在body完全被读入之后才存在 | body标签没有被浏览器完全读入之前就存在 |
鼠标按键 | 左键是 window.event.button = 1 右键是 window.event.button = 2 中键是 window.event.button = 4 没有按键动作的时候 window.event.button = 0 | 左键是 event.button = 0 右键是 event.button = 2 中键是 event.button = 1 没有按键动作的时候 event.button = 0 |
事件添加方式 | document.attachEvent("onmousemove", function) | document.addEventListener("mousemove", function, false) |
创建XMLHttpRequest的方式 | xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") | xmlhttp=new XMLHttpRequest() |
相关文章推荐
- 开发前台时FireFox和IE的区别
- jQuery:append 和 appendTo 在firefox和ie中的区别
- Struts2整合jQuery实现Ajax功能-IE与firefox的区别
- FireFox与IE开发上的一些区别
- IE与firefox之jquery用法区别
- JS代码在IE和Firefox间的区别(独家搜集归纳整理,持续更新中)
- 整理的比较全的event对像在ie与firefox浏览器中的区别
- IE与firefox之jquery用法区别
- firefox和IE系列的相关区别整理 以备后用
- 【转】FireFox与IE开发上的一些区别
- FireFox与IE开发上的一些区别
- FireFox与IE开发上的一些区别
- 整理的比较全的event对像在ie与firefox浏览器中的区别
- FireFox与IE开发上的一些区别
- FireFox与IE开发上的一些区别
- firefox和IE系列的相关区别整理 以备后用
- JS代码在IE和Firefox间的区别(独家搜集归纳整理,持续更新中)
- 整理的比较全的event对像在ie与firefox浏览器中的区别
- FireFox与IE开发上的一些区别
- 整理js和jquery的区别