Definition and Usage The bold() method is used to display a string in bold. Syntax stringObject.bold() Example In this example ...
Definition and Usage
The bold() method is used to display a string in bold.Syntax
stringObject.bold() |
Example
In this example "Hello world!" will be displayed in bold:<script type="text/javascript"> var str="Hello world!"; document.write(str.bold()); </script> |