I have a script that does the most simple thing in JavaScript - finds an element in the DOM using getElementById. I have a simple "input" button - <input type="button" element on the page with an onclick event - which calls a script function. The first line of the function is var elem = document.getElementById('[elementname]'); This all runs fine on most machines and most browsers - except IE11 running on windows 10 on some computers. When these users visit the webpage using IE11 on windows 10 and click the input button, it runs the onclick script and fails on the first line of code. On one persons computer, it shows an error that says something like document object doesn't have a method named getElementById. On another persons computer it doesn't even show an error - it just tries to execute the first line and immediately stops running any script and aborts back to the page without ever throwing an error. When I look at the document object on my machine (win 7 IE11) it evaluates "document" as "object" and "HTMLDocument". When I evaluate the document object on computers that fail, it evaluates "document" as "object" and "dispHTMLDocument". Not sure what dispHTMLDocument is and I have no idea why it doesn't recognize the getElementById method.
I need some kind of fix for this - there is key functionality that these users can't run... is there any way to convert the dispHTMLDocument into an HTMLDocument? Is there a browser setting I can change to fix this problem? Can I ask them to install or upgrade something - like a java version - to fix this?
I don't even know where to start. :( Thanks for any help!
ahuitt