I’m analysing other person JavaScript code and found this condition
if (document.images)
I foun on other sites that it is used to verify if browser supports dynamic images. Something like when we put mouse over image, other image is loaded. It’s looks like very old JavaScript. Is it makes sense to use it nowadays? Is this condition have another objective?
If browser support arrays of image, this condition return true. Internet Explorer > 3 support this 🙂 check this article http://www.quirksmode.org/js/support.html
And yes, it’s very old js, there is no need to check it out now