Latest

recent

JavaScript bold() Method

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>
JavaScript bold() Method Reviewed by 1000sourcecodes on 02:17 Rating: 5
Powered by Blogger.