Introduction
In some Schenario’s we need to refresh page in Client Side.Using Javascript to refresh the webpage is very simple task.
Code:
I has a WebPage named wfrmSample.aspx
In inline,i am going to declare
<input id=PageRefresh type=submit runat=server name=PageReferesh>
<input id=btnRefresh text=Click Me! runat=server onclick=”ClientRefresh();”>
In JavaScript the below simple script will refresh the Web Page,
function ClientRefresh(){
var submit = document.getElementById(‘PageRefresh’);
submit.click();
}
Hope,this will help you understand refreshing webpages using javascript,
Happy Coding.
Comments are closed.