After editing a form in InfoPath for use on a SharePoint 2010 site, my page will no longer load on IE11. On all other browsers, it is fine, but before the page can load in IE11, I receive a "Critical Error" message that states: "Object doesn't support property or method 'addEventListener'". According to a StackOverflow post that I found (http://stackoverflow.com/questions/18829292/object-doesnt-support-this-property-or-method-error-in-ie11https://stackoverflow.com/questions/18829292/object-doesnt-support-this-property-or-method-error-in-ie11), the solution to this problem is to either run IE11 in compatibility mode or to insert the following code in the Master Page"
<script language="javascript">
/* IE11 Fix for SP2010 */
if (typeof(UserAgentInfo) != 'undefined' && !window.addEventListener)
{
UserAgentInfo.strBrowser=1;
}
</script>
I would rather not ask all my users to run their IE11 in compatibility mode, and I currently don't have access to the Master Page. Does anyone know if there is any workaround that I can use to solve this problem aside from the two previously mentioned solutions?
EDIT: Changed script.