javascript find textarea

JavaScript
if(document.getElementsByTagName('textarea').length > 0) {

}
Source

Also in JavaScript: