<html>
<body>
<h1>Change word-spacing with JavaScript</h1>
<p>Click the "Try it" button to make the space between words in the DIV element 20 pixels:</p>
<button onclick="myFunction()">Try it</button>
<div id="myDIV">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</div>
<script>
function myFunction() {
document.getElementById("myDIV").style.wordSpacing = "20px";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_js_word-spacing by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:25 GMT -->
</html>