Javascript alert messages in infinite loop
问题 Alert boxes in infinite loop, here I am trying to put a popup alert message on 2 consecutive fields so they cannot be left blank, I know why it is happening - because when onblur event of 1st function is launched it gives focus to second one & when it jumps back to first one onblur of 2nd textfield is launched. I know validation would be best when done at the form level, but this is the requirement I got. Any help? Javascript code function x() { if( document.getElementById("1").value.length=