Javascript examples for CSS Style Property:fontWeight
Add CSS style fontWeight to an element at runtime
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <a id="myP" href="www.example.com">Example</a> <script type="text/javascript"> console.log("myP"); document.getElementById("myP").style.fontWeight = "bold"; /* w w w . j av a2s .c o m*/ </script> </body> </html>