IE에서 event.preventDefault()가 제대로 동작하지 않을때

in IE, you can use
event.returnValue = false;
to achieve the same result.

And in order not to get an error, you can test for the existence of preventDefault:
if(event.preventDefault) event.preventDefault();

You can combine the two with:
event.preventDefault ? event.preventDefault() : (event.returnValue = false);
Previous
Next Post »