Get the Number of elements in the Current Browsers History list Using javaScript

Chikul
Posted by Chikul under JavaScript category on | Views : 1787
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Get the Number of elements in the Current Browsers History list Using javaScript</title>
<script type="text/javascript">
function fnHistory()
{
var vHist = history.length;
document.write("The number of pages visited in this window is" +vHist+ " pages.");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnHisory" runat="server" Text="History" OnClientClick="fnHistory();" /></div>
</form>
</body>
</html>

Comments or Responses

Login to post response