Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Thursday, January 6, 2011
innerText and textContent
In firefox, no innerText property, you have to go by textContent.
One line code to check this:
var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment