<!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 |
0 comments:
Post a Comment
Leave a comment on blog quality.