문제

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

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.

올바른 솔루션이 없습니다

다른 팁

Is using jQuery an option? As this will perform some checks and use fallbacks when Javascript's .innerHTML() fails.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top