object.style.fontWeight = "value"
- normal: The font weight is the default value.
- lighter: The font weight is the lighter than normal.
- bold: The font weight is bolder than normal.
- bolder: The font weight is bolder than bold.
- value: It defines from 100 to 900 where 400 is normal value.
- initial: It sets to its default font weight.
- inherit: It inherits this property from its parent element.
Before Click the Button:
After Click the Button:
- Google Chrome
- Internet Explorer
- Mozilla Firefox