Attached is the simple html file comprising two textboxes having similar onblur function mentioned in head section of page.
Scenario 1 :
If I tab out from first textbox it gives me alert message for infinite times and page gets stuck. This scenario happens only when I have multiple textbox on page.
Scenario 2:
If I remove one textbox and comment out another one then scenario 1 is not produced.
Question:
Why in scenario 1 page gets stuck because of infinite alert messages?
HTML Code for more convenience (if anybody is reluctant to extract the zip file):
<html>
<head>
<script type = "text/javascript">
function testmethod()
{
alert ("hi");
return false;
}
</script>
</head>
<body>
<input type="text" id = "txtSample" onblur="javascript:testmethod();"> </input>
<input type="text" id = "txtSample1" onblur="javascript:testmethod();"> </input>
</body>
</html>