Ways of Refreshing a Web Page using Javascript.

Rajesh_Kumar
Posted by Rajesh_Kumar under JavaScript category on | Points: 40 | Views : 1218
1st way:
function reload_page()
{
location.reload();
}


2nd way:
function reload_page()
{
history.go(0);
}


3rd way:
function reload_page()
{
window.location.href = window.location.href;
}


Now,call above any function in button click.

Comments or Responses

Login to post response