click count in asp.net

Posted by Suneel161 under ASP.NET on 8/21/2010 | Points: 10 | Views : 1796 | Status : [Member] | Replies : 1
i have an empty page in asp.net if i click on that empty page it should show the number of clicks in that page




Responses

Posted by: SurajRane on: 8/23/2010 [Member] Starter | Points: 25

Up
0
Down
Check out this


<script type="text/javascript">

var numberOfClicks=0;

function CountClicks()
{
alert(++numberOfClicks);
return false;
}

</script>
<body onclick="return CountClicks()">

-----------
-----------
</body>

Suneel161, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response