Use textContent for standards-compliance (Firefox/Opera) and innerText for IE.
An alternative is to use firstChild.data or firstChild.nodeValue.
Thanks Acoder :-)
Actually i got a problem that's why i could not come :-(
Now, what i tried that ....
- this.innerHTML.replace('&','&')
Still it prints the same. Is not the property innerHTML is String?
The same thing tried with a string...expected result coming :-)
- alert('&'.replace('&','&')) //it prints &
Why? Could you explain Acoder?
lol ............. :-)
Actually I wrote Apersandamp; but it comes as & only ..you know what i mean?