Monday 6 January 2014

Object doesn’t support property or method ‘addEventListener’ SharePoint 2010 IE11

We should copy & paste the following code on your master page with in body tag.
But it should be bottom of the page.
<script language="JavaScript">
/* IE11 Fix for SP2010 */
if (typeof UserAgentInfo.strBrowser !== ‘undefined’ && !window.addEventListener) {
UserAgentInfo.strBrowser=1;
}
</script>
Example:
<body>
..
...
..
<script language="JavaScript">
/* IE11 Fix for SP2010 */
if (typeof UserAgentInfo.strBrowser !== ‘undefined’ && !window.addEventListener) {
UserAgentInfo.strBrowser=1;
}
</script>
</body>
..
..
Note: Remove & add the quote again in 'undefined'

No comments:

Post a Comment