Description:I was trying to register click event onload and it is working fine in chrome but the event not firing at all in IE even in the latest version of IE.
I have tried following code
<script type="text/javascript">
window.onload = function(){console.log('event fired');}
</script>
Posted by: Junaid Aziz | Posted on: Dec 17, 2018
4
I have also faced same issue and solved it by just adding the new keyword before the function and it did the trick for me. Try using the following code instead of yours.
Replied by: Tabish Usman | Replied on: Dec 17, 2018