<html>
<body>
<h1>Change list-style-image with JavaScript</h1>
<p>Click the "Try it" button to change the style of the list:</p>
<button onclick="myFunction()">Try it</button>
<ul id="myUL">
<li>Emil</li>
<li>Tobias</li>
<li>Linus</li>
</ul>
<script>
function myFunction() {
document.getElementById("myUL").style.listStyleImage = "url('smiley.gif')";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_js_list-style-image by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:37:19 GMT -->
</html>