Text Box Mouse-over Highlight


To make a text box (<textarea rows="x" cols="y">...</textarea>) highlight all of its text when the mouse hovers over it, simply use this code and change the "..." to whatever text you want:



The above code, with the "..." changed to some text, will result in this:


Note: You MUST have the form and textarea names correspond to the text in the onMouseOver argument. Also, making the text in a textbox highlight on mouse-over makes it handy for people who use laptops to copy all the text from the text box by simply putting their mouse over the text box, then pressing Ctrl+C on Windows or (Apple Key)+C on a Mac. Anyways, hope this helped! :)

P.S. You can also make it so that they can click the text box to highlight all the text by simply changing "onMouseOver" to "onClick":
Hosted by www.Geocities.ws

1