Tuesday, 29 January 2013

Reload Page Using JQuery


<!DOCTYPE html>
<html>
<head>
<script>
function reloadPage()
  {
  location.reload()
  }
</script>
</head>
<body>

<input type="button" value="Reload page" onclick="reloadPage()">

</body>
</html> 


Syntax

location.reload(forceGet)


Parameter Type Description
forceGet Boolean Optional. default false which reloads the page from the cache. Set this paramter to true if you want to force the browser to get the page from the server

Return Value

No return value

Reactions:

0 comments:

Post a Comment

Leave a comment on blog quality.

Blogger

Related Posts Plugin for WordPress, Blogger...