Showing posts with label clear text area on click with javascript. Show all posts
Showing posts with label clear text area on click with javascript. 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>