TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chintan Dave
NA
67
37k
onblur function gives infinite alert message
Sep 26 2018 4:29 AM
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>
Attachment:
Test.zip
Reply
Answers (
2
)
Calendar Extender Issues
How to prevent round off of parseFloat