Guide to creating a web site, web design, web development, internet marketing, promotion, html tips and tricks, javascript and more.

Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

Offering Free Javascript Tips, Snippets and Codes

Open Directory Projectfree ebooksfree articles
web site design development internet marketing and promotion tutorials

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources
website design

Reload a Window With a Button

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>



Submit your JavaScript code snippets. We'll credit you and give you a link to your website.