Monday, March 8, 2010

innerText and textContent

Use the following code in javascript to acquire the same functionality as innerText.
var myText = document.getElementById(’divText’).textContent; // same as innertext.

No comments:

Post a Comment