Are you looking
for a JavaScript code that will enable your visitors to reload a window with
a button? This JavaScript code is for you.
You can create a JavaScript button that will reload your web page when pressed:
Click the above
button to reload this window
You can use a
button to reload a web page in a variety of ways. For example, if you're
rotating content on your web page via a JavaScript, which means some of the
content changes each time the page loads, you can enable your visitors to
click on a button to reload your web page. This will enable them to view
your new content each time they click on the button and reload your page.
Place the following JavaScript code into your HTML where you would like the
button to appear:
<form
method="post">
<input type="button" value="Reload Window"
onclick="window.location.reload()">
</form> |
|