I was trying to call .call Function prototype method on document.attachEvent in IE7. But it is showing as undefined.
I have also checked typeof document.attachEvent, is should show as function but it is object.
Can someone explain it why?
document.attachEvent.call(this, 'onclick', function () {});
Getting this error
Error: Object doesn't support this property or method