The site I'm working on uses Prototype 1.6.1. Its Event.stop() doesn't work in IE9. I know that Prototype 1.7 fixes the problem. However, is there a walk-around if I cannot upgrade to Prototype 1.7?
I need the site to be compatible with IE 7, 8 and 9 (as well as Chrome, Firefox, etc).
Thanks!
EDIT: I tried event.preventDefault()
and it doesn't work for me in IE 9. Here is an example: http://jsfiddle.net/garthcn/AdR7g/
It works in jsfiddle/Chrome/Firefox. If you paste the code to an HTML file and open it with IE9, it won't work.
EDIT2: I just found that Prototype 1.6.1 adds its own preventDefault()
method to IE which doesn't work on IE 9. However, IE 9 comes with its own preventDefault()
which actually works. So if I stick to Prototype 1.6.1, I guess I cannot get preventDefault()
to work on IE 9.