G
Grzegorz ¦lusarek
Hi all. Is it posible to add a method to prototype of object HTMLCollection?
I mean something like this:
HTMLCollection.prototype.indexOf=function(obj){
var result=-1;
for (var i=0;i<this.length;i++){
if (this==obj){
result=i;
break;
}
}
return result;
}
my trials fail for now but I will try more
thanks for any help
Gregor
I mean something like this:
HTMLCollection.prototype.indexOf=function(obj){
var result=-1;
for (var i=0;i<this.length;i++){
if (this==obj){
result=i;
break;
}
}
return result;
}
my trials fail for now but I will try more
thanks for any help
Gregor