Answers for "how to make something bold javascript"

1

make text bold js

<button onclick="myFunction()">Try it</button>

<p >Make text bold <span id="demo">Text Bold</p>

<script>
function myFunction() {
  document.getElementById("demo").style.fontWeight = "900";
}
</script>
Posted by: Guest on June-12-2020
-2

javascript add text to bold tag

TextBox.innerHTML = "Hello";
Posted by: Guest on March-17-2021

Code answers related to "how to make something bold javascript"

Browse Popular Code Answers by Language