- Back to Home »
- Bad Bad onBlur and onFocus Alerts in Webpage Validations
Bad Bad onBlur and onFocus Alerts in Webpage Validations
I really get irritated when I see alert popup windows that come up in web pages that I browse and fill particularly following the onBlur of one textbox and onFocus of another control. Having such a flow is kind of irritating and erroneus for the following reasons:
- A reckless placement of validations might cause a race condition. Blur of A calling Focus of B. Blur of B might call Focus of A. This might your web browser to freeze and the user would be forced to kill the browser with Task Manager. If the user is not techsavvy, he might only resort rebooting his PC losing his unsaved changed.
- Valuable user time is wasted.
I would recommend an elegant solution would be to buffer the validations for the submit button for the webpages or a due button click.