575Chapter 25 .Text-Related Form Objects (Web host forum) maxLength Value: Integer
Saturday, September 15th, 2007575Chapter 25 .Text-Related Form Objects maxLength Value: Integer Read/Write NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . The maxLength property controls the maximum number of characters allowed to be typed into the field. There is no interaction between the maxLength and size properties. This value is normally set initially via the MAXLENGTH attribute of the INPUT element. On the Example on the CD-ROM CD-ROM Related Items: size property. name Value: Identifier String Read/Write NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . . Text object names are important for two reasons. First, if your HTML page submits information to CGI scripts, the input device passes the name of the text object along with the data to help the server program identify the data being supplied by the form. Second, you can use a text object s name in its reference within JavaScript coding. If you assign distinctive, meaningful names to your fields, these names will help you read and debug your JavaScript listings (and will help others follow your scripting tactics). Be as descriptive about your text object names as you can. Borrowing text from the field s on-page label may help you mentally map a scripted reference to a physical field on the page. Like all JavaScript object names, text object names must begin with a letter and be followed by any number of letters or numbers. Avoid punctuation symbols with the exception of the very safe underscore character. Although I urge you to use distinctive names for all objects you define in a document, you can make a case for assigning the same name to a series of interrelated fields and JavaScript is ready to help. Within a single form, any reused name for the same object type is placed in an indexed array for that name. For example, if you define three fields with the name entry, the following statements retrieve the value property for each field: data = document.forms[0].entry[0].value data = document.forms[0].entry[1].value data = document.forms[0].entry[2].value document.formObject.textObject.name
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.