how to reload page on button click in javascript
<button type="button" onClick="window.location.reload();">Close</button>const reloadtButton = document.querySelector("#reload");
// Reload everything:
function reload() {
reload = location.reload();
}
// Event listeners for reload
reloadButton.addEventListener("click", reload, false);<button type="button" onClick="refreshPage()">Close</button>
<script>
function refreshPage(){
window.location.reload();
}
</script>
Also in JavaScript:
- json enconde
- reflection of an graph javascript
- add firebase javascript
- how to do basic authentication with fetch api
- debugger js
- convert json to object jackson
- how to make react native dapp truffle
- javascript detect touch screen device
- .push js
- javascript get index of object with value in array
- rorate array
- click outside box jquery
- get first element of array javascript
- jquery selected option value
- select all checkboxes html js
- edit json via nodejs
- angular tilt
- post fetch call
- js check if function is a constructor
- How many different types of JS alerts do we have?
- angular 6 key value pair getvalue example
- what is code.jquery integrity crossorigin
- unban command discord.js v12
- return this javascript