function GetInnerText(elem) {
return (typeof(elem.innerText) != 'undefined') ? elem.innerText :
(typeof(elem.textContent) != 'undefined') ? elem.textContent : elem.innerHTML.replace(/]+>/g, '');
}
I’m tryin’ ta think but nuthin’ happens!
function GetInnerText(elem) {
return (typeof(elem.innerText) != 'undefined') ? elem.innerText :
(typeof(elem.textContent) != 'undefined') ? elem.textContent : elem.innerHTML.replace(/]+>/g, '');
}