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: Client Scripting
Expertise: Beginner
Oct 18, 1999



Application Security Testing: An Integral Part of DevOps

Determining Size of an INPUT Field

How can I determine the maximum size of an INPUT field?

Although you can certainly use JavaScript to find out the size of your user's screen or the size of their browser window, this information doesn't help much when you want to set the size of your form INPUT fields. This is because the browser and the user's platform dictates how form elements are displayed and you have very limited control. In addition, on some platforms, like Windows 95/98/NT, users can customize the size and style of the fonts used by the system. This makes setting the size of your INPUT controls even harder. There isn't much of a work-around for this issue. The only thing you can do is test, test, test.

DevX Pro
Comment and Contribute






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



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date