/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// create "Array.indexOf" function in IE if(!Array.prototype.indexOf){ Array.prototype.indexOf=function(obj,start){ for(var i=(start||0),j=this.length;i<j;i++){ if(this[i]==obj){return i;} } return -1; } }
Comments
