1
2
<html>
3
<body>
4
<h1>loads a new document from the specified URL in JavaScript</h1>
5
<button id="reload">Reload</button>
6
<script>
7
let reloady = document.getElementById('reload');
8
reload.addEventListener('click',()=>{
9
window.location.reload(true)
10
});
11
</script>
12
</body>
13
</html>