Rahul's Tech Blog

Growth Hacking, Just Hacking or No hacking !!!


Learn From Examples: Modifying css style on the go using javascript, Part I

Learn From Examples Series Suggession: Type the code manually else it won’t work. 😛 Use javascript events like onmouseover and onmouseout to change CSS style of an object. Code: <input onmouseover="this.style.backgroundColour=’#000000′;" onmouseout="this.style.backgroundColour=’#ffffff';" type="text" />   Code Explained: The above code will create an inputbox and on mouseover its background colour will change to black. this […]