Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Web
Expertise: Beginner
Oct 11, 2002



Application Security Testing: An Integral Part of DevOps

Implementing Read-only Fields in Javascript

A field gains focus when the user clicks inside the text box, and the focus is lost when the user clicks outside the box, anywhere on the page. You can explicitly blur a text object using the object's blur() method, which removes focus from the field. This method deselects any text that might be selected in the field and removes the text insertion point from the field. At this point, no fields or form elements are focused.
<INPUT TYPE="text" NAME="myField" VALUE="Have you checked docjs.com?"
onFocus="this.blur()" SIZE="40">
Devington B.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date