Skip to content Skip to sidebar Skip to footer

Javascript To Change Background Colour And Font Size

input type='button' name='colr' value=' Blue ' onclick='document.bgColor='#0000FF'' Basically i have done buttons using javascipt to change the background colour in my website pre

Solution 1:

You would need to change your design approach.

If the button is to have a fixed color, you should use predefined CSS for the button instead of changing it using JavaScript.

Post a Comment for "Javascript To Change Background Colour And Font Size"