Today, I came to know that innerText property of any web control is not supported by FireFox and Safari browser. Here, I found the alternate solution for innerText property.
Use the following code in javascript to acquire the same functionality as innerText.
var myText = document.getElementById(’divText’).textContent; // same as innertext.
Thanks for the tip!!!! Works like charm..
Thanks for the tip its work perfectly.
I got a problem with this property. If my text has control characters (\n, \t,…), those will be replaced by “” if I use textContent in FF. Please help.
CooL man ^^
what cool man ~~
Thanks for help
textContent working SUXX! It often include javascript code instead of text
thanks for find this out. It helped me a lot
Just use innerHTML instead of innerText – it works in FF, Safari, Chrome etc. And your (not “\n”) will work in there.
Tag removed by wordpress.
There was text “And your (not “\n”) will work in there.”
Образцовый блог, делюсь с Вами, наслаждайтесь, изучайте, зарабатывайте, http://ochupella.ru/