<html> <body> <textarea id="myText" cols="200" rows="20"></textarea> <button onclick="alert(myText.isMultiLine);">Is Textarea Multiline</button> </body> </html>