Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
Ng-Mousedown-4
On mouse down event the font and color of text will change and come to original state when mouse is up.
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> <p ng-mousedown="myStyle={'color':'red','font-size':'larger'}" ng-mouseup="myStyle={'font-size':''}" ng-style="myStyle" ng-class="'button'">Mousedown then fonts will be thick.</p> </div> </body> </html>
Output
×
Save This try
Title
Description
On mouse down event the font and color of text will change and come to original state when mouse is up.