views:

196

answers:

3

How to display text when mouse over an input text box the simplest way (no css, or etc)??

+2  A: 

Put some title and alt attributes on it.

<input type="text" title="show this text" alt="show this text" />
jon_brockman
Using a title attribute for that is however bad practise, the title attribute is the title of the element, nothing more.Browsers are not required to display it when you hover over it, and using it as such could be argued to be considered back practise.
Lajla
so what do you suggest Lajla?
Fernando SBS
+2  A: 

Don't have to use the alt attribute just the title will do this for you.

RobertPitt
A: 

editbox.title = "XXX";

Fernando SBS