Please forgive me in advance for being a stoopid noob.
Anyway, I'm trying to make my html5 game play on IE10, but it's not detecting my clicks.
So I research this a bit and find out that instead of understanding what this means:
document.getElementById("answer1").addEventListener("click", wrong, false);
If have to use some crappy proprietary code. Because I am a stoopid noob, I am having problems implementing this.
Here is what I have currently
document.getElementById("answer1").addEventListener("click", wrong, false);
document.getElementById("answer2").addEventListener("click", wrong, false);
document.getElementById("answer3").addEventListener("click", wrong, false);
document.getElementById("answer4").addEventListener("click", wrong, false);
//Stupid IE10 Crap
if (window.navigator.msPointerEnabled) {
document.getElementById("answer1").addEventListener("MSPointerDown", wrong, false);
document.getElementById("answer2").addEventListener("MSPointerDown", wrong, false);
document.getElementById("answer3").addEventListener("MSPointerDown", wrong, false);
document.getElementById("answer4").addEventListener("MSPointerDown", wrong, false);
}
When I run the code on ie10, it still doesn't register my mouse clicks. Am I missing something or doing something incorrectly?
Please assist me.