Sunday 16 March 2014

Reload Page Button Using Javascript


Reload Page Button Using Javascript


Sometime we need a reload button to get the updated information or to perform certain activities on page load event. In such scenarios this Javascript Page reload button can be used to achieve such goals.. 

Refer the Code Snippet below which refreshes the current time whenever the Reload button is pressed..


<html>
<head>
<title>Reload Page Button</title>
<script>

var d=new Date();
document.write(d);

</script>
</head>
<body>
<br/>
<br/>
<br/>
<br/>
<INPUT Type="button" VALUE="Reload Page" onClick="history.go(0)">
</body>
</html> 

No comments:

Post a Comment

Thank You for Your Comments. We will get back to you soon.

back to top