Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The DOMTokenList Object</h1>
<h2>The values() Method</h2>
<p>The values in the list are:</p>
<p id="demo" class="c1 c2 c3"></p>
<script>
let list = document.getElementById("demo").classList;
let text = "";
for (let x of list.values()) {
  text += x + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_domtokenlist_values by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:19:30 GMT -->
</html>