topical media & game development
#javascript-code-14-innertext.js / js
// Let’s assume that we have an <li> element like this, stored in the variable ‘li’:
<li>Please visit <a href=”http://mysite.com/”>my web site</a>.</li>
// Using the innerText property
li.innerText
// or the text() function described in Chapter 7
text( li )
// The result of either the property or the function is:
“Please visit my web site.”
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.