// Let’s assume that we have an
  • element like this, stored in the variable ‘li’:
  • Please visit my web site.
  • // 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.”