e.preventDefault Internet Explorer 8 / 9 / 10 – Object doesn’t support property or method ‘preventDefault’

Problem:

SCRIPT438: Object doesn’t support property or method ‘preventDefault’

Solution:

Applied to: Internet Explorer 9 and Internet Explorer 10 (but it’s similar for the other).

Put the following instructions on your javascript code:

if (e.preventDefault) { 
    e.preventDefault(); 
} else {
    e.returnValue = false;
}

If you need more information look on microsoft website (http://msdn.microsoft.com/en-us/library/ie/ms534372(v=vs.85).aspx)

Best Regards,

ITquadro – specialized Blog

ITquadro consulenti informatici specializzati in ambienti microsoft. Ci trovate su Bologna ed Emilia-Romagna ma anche su Milano e Roma.
Siamo un’azienda di consulenza informatica a Bologna