<html>
<body>
<p id="myP">This is an example paragraph.</p>
<button type="button" onclick="myFunction()">Set word spacing</button>
<script>
function myFunction() {
document.getElementById("myP").style.wordSpacing = "50px";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_wordspacing by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:06:35 GMT -->
</html>