Scroller object not working in IE7 But Working in IE8
-
21-09-2019 - |
Question
i am having difficulties trying to solve a runtime error that i get in IE7 but its working fine in IE8, it says that this.scroller is nutll or not an object for a scroller that i use.but what surprises me is that it is working on every browser. Please guys i need a solution.if i have not clarified my question please let me know.I am just looking for a reason that may cause this.
Solution
have you tried checking pulling back scroller using getElementsbyID instead?
var elem = document.getElementById("scroller");
if (!elem)
{
//do stuff
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow