zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<p>Display the number of URLs in the history list:</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
  function myFunction() {
    document.getElementById("demo").innerHTML = history.length;
  }
</script>
</body>
<!-- /js/tryit.asp?filename=tryjs_history_length Thu, 06 Feb 2025 19:15:48 GMT -->
</html>