Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hover Message in html on a button

Tags:

html

hover

web

How to get hover message when mouse goes on a button.

Thanks

like image 809
rachel Avatar asked Dec 22 '11 07:12

rachel


2 Answers

Use a title attribute.

<input type='button'  value='Press me' title='This is my title' />
like image 180
Derk Arts Avatar answered Oct 30 '22 11:10

Derk Arts


The attribute title matters here. Just add the title attribute and write the message to be given in button tag.

example :

<button title="Message needs to be shown">My button</button>

This should work fine. if you are using link for the button:

<button><a href="http://link.php" title="Msg to be shown">My button</a></button>
like image 39
Deepak N Avatar answered Oct 30 '22 09:10

Deepak N