I am trying to call a function repeatedly after a certain amount of time delay with the help of java script.
<html>
<head>
<script type="text/javascript" src="prototype.js"></script>
<script>
function sendRequest()
{
Something to do
}
</script>
</head>
<body>
<script type="text/javascript">
setTimeout ( "sendRequest()", 2000 );
</script>
</body>
</html>
If i use any infinite for loop before line 14 then my browser giving warning...!!
What to do??