摘要:
function cancelEvent(evt){if (window.event) {window.event.cancelBubble =true;}else{evt.stopPropagation();}}event在firefox浏览器中是局部变量,所以必须要通过参数的方式传递到相应的方... 阅读全文
posted @ 2013-06-13 17:43
linyujade
阅读(148)
评论(0)
推荐(0)
摘要:
以前很多网页都使用如下脚本来打开对话框,这脚本只能在IE下使用,对于某些浏览器来说完全不兼容。var returnValue =window.showModalDialog(url,'',features);最近在做浏览器兼容的工作,必须把这些不兼容的问题一一解决掉。针对此问题,修改如下:1、在父窗... 阅读全文
posted @ 2013-06-13 15:50
linyujade
阅读(537)
评论(0)
推荐(0)

浙公网安备 33010602011771号