FernandoSBS
FernandoSBS

Reputation: 655

javascript how to display text when mouse over input text box?

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

Upvotes: 4

Views: 14062

Answers (3)

FernandoSBS
FernandoSBS

Reputation: 655

editbox.title = "XXX";

Upvotes: 0

RobertPitt
RobertPitt

Reputation: 57268

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

Upvotes: 3

jon_brockman
jon_brockman

Reputation: 373

Put some title and alt attributes on it.

<input type="text" title="show this text" alt="show this text" />

Upvotes: 8

Related Questions