Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload document

Status
Not open for further replies.

cat5ives

Programmer
Sep 13, 2011
11
US
How does the reload work? I thought when it reload, I will see everything as the first time it load. But when I click button in the sample below to reload the page, I don't see button any more.

Thank in advance.

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

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

</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top