Showing posts with label javascript clear textarea on click. Show all posts
Showing posts with label javascript clear textarea on click. Show all posts

javascript clear textarea on click

javascript clear textarea on click


<form name="myform">
<textarea name="mytext" cols="30" rows="5"
onclick="document.myform.mytext.value='';">
This text will disappear when you click the textarea with the mouse</textarea>
</form>