SyntaxFix
Write A Post
Hire A Developer
Questions
Your Html
<input type="button" value="Clear" onclick="clearContent()"> <textarea id='output' rows=20 cols=90></textarea>
Your Javascript
function clearContent() { document.getElementById("output").value=''; }