getInnerText( object or id )
This function retrieves the text contained in an output element. This value returned by this function is similar to the content returned by the innerHTML property of an object; however, all html formatting, such as tags and non-breaking space characters, is ignored.
Parameters:
object or id – reference to an output element or the id of the element from which to retrieve the text
Example:
var text = getInnerText("D_5_5");