Why javascript contains property is not working in chrome browser? I have tried that Contains Property in javascript.It is working fine in Mozila Firefox Browser. But It is
Use your own contains method and override firefox's contains() method. Because this method is widely used I mean -> (indexof).
indexof
String.prototype.contains = function(str) { return this.indexOf(str) != -1; };