lundi 3 mars 2014

SCRIPT5007: Unable to get property 'replace' of undefined or null reference


Vote count:

0




Cant figure out why IE is showing this error message on this line:


this.innerHTML.replace('#','').trim()


I used getElementsByClassName and looped through all tags and attempting to remove the hashtag from the innerHTML of the link.


Works great in all browsers other than IE.


Any help appreciated.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire