Add onfocus -event to the textarea below. When the user enters the
textarea, it should show a text saying: "Please fill in the form with
proper data.". You can try modifying the background color of the box as
well.
Try to use onkeydown -event on the textarea. It should calculate the
number of keypresses and output them on the screen. Could you think
other smart ways to use it?
When the form button is clicked, check if the textarea is empty. Notify
the user with appropriate message. HINT: You can access the Textarea
using the following command:
document.getElementById("textdata").value. We will study the
forms deeper in Workshops 4 and 5.