Books
in black and white
Main menu
Home About us Share a book
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

Javascript for dummies. Quick Reference - Vander

Vander Javascript for dummies. Quick Reference - Wiley Publishing, 2002. - 115 p.
Download (direct link): javascriptquickreference2002.pdf
Previous << 1 .. 41 42 43 44 45 46 < 47 > 48 49 50 51 52 53 .. 72 >> Next

document.my Image.1owsгс
method
The method property of the form object enables you to access the value for the METHOD attribute defined as part of the <F0RM>. . .</F0RM> tag pair. A valid value for this property is a string that specifies how form field input is sent to the server when the form is submitted (either "GET" or " POST").
Take a look at Chapter 10 of JavaScript For Dummies (by Yours Truly) for a complete discussion of the difference between setting this property equal to " GET" and to " POST".
document.myForm.method
mimeTypes
Them i meTypes array associated with the n a v i g a t о г obj ect enables you to access all the MIME types supported by the client (whether defined internally, by helper applications, or by plugins). Each element in the mi meTypes array is a mi meTypes object.
navi gator.mimeTypes[0]
name
The name property is available on many different objects. Unless otherwise noted, the name property always represents the NAME attribute for an object.
Object Usage Comments
a pplet document.applets[0].name
button document.myForm.myButton.name
checkbox document.my Form.myCheckbox.name
fi1eUpload document.myForm.myFi1eUpload.name
frame my Frame.name
hi dden document.my Form.myHi dden.name
i mage document.my Form.my Image.name
password document.myForm.myPas sword.name
piugi n document.embeds[0].name
radi о document.myForm.myRadi о[0].name All radio buttons in a set have the same name.
reset document.myForm.myReset.name
select document.my Form.mySelect.name
submi t document.my Form.mySubmi t.name
text document.myForm.myText.name
textarea document.my Form.myTextarea.name
wi ndow wi ndow.name wi ndow. name is readonly; its value is that of the wi ndowVar attribute.
opti ons array document.my Form.mySelect. opti ons[0].name
parent (u/indou?) 1
Nothing particularly special applies to the implementation of radio buttons. Any group of form objects to which you give the same name is automatically organized in an array.
opener
When you open a window using the open () method, you can use the opener property of the wi ndow object to access the window of the calling document.
windowReference.opener
At the time of this writing, Internet Explorer 3.0 doesn’t support the wi ndow. opener property.
options
The opti ons array, associated with the sel ect object, enables you to access all the options that have been defined for a sel ect object. The array is in source code order (the first option defined is the 0th element in the array, and so forth). Elements of the array are read-only.
document.myForm.selectFi eldName.opti ons[0] document.myForm.selectFi eldName.opti ons.1ength
parent (frame)
The parent property of the frame object is a synonym for a frame whose frameset contains the current frame (the frame you’re in when you’re referencing the parent property). When the parent is a frame, the value for the parent property is the value of the NAME attribute defined as part of the <FRAME>. . . </FRAME> declaration. When the parent is a window, the value for the parent property is an internal reference. (That is, you can use the internal reference to refer to the properties of the window, but the internal reference is not much to look at.) The value for the parent property is read-only.
parent
parent (window)
The parent property ofthewindowobjectisa synonym for a frame whose frameset contains the current window (the window you’re in when you’re referencing the parent property). When the
Ц0 pathname
parent is a frame, the value for the parent property is the value of the NAME attribute defined as part of the <FRAME> . . . </ FRAME) declaration. When the parent is a window, the value for the parent property is an internal reference. (That is, you can use the internal reference to refer to the properties of the window, but the internal reference is not much to look at.) The value for the parent property is read-only.
The pathname property is associated with the a rea, 1 i nk, and 1 ocati on objects. Use the pathname property of each object to access the path portion of that object’s URL. You can set the string value for the pathname property.
// syntax for both link object and area object document.1i nks[i ndex].pathname
document.1ocation.pathname
PI, a property of the Math object, refers to the mathematical constant for the ratio of the circumference of a circle to its diameter (approximately 3.1415). The value for PI is read-only.
Math.PI
The plugins array associated with the navigator object enables you to access all the plug-ins (plugin objects) currently installed on the client. Each element in the plugins array is a pi ugi.n object.
navi gator.piugins[0]
The port property is associated with the area, link, and
1 ocati on objects. The port property of each object is a substring, or piece, of that object’s host property (which is itself a substring of that object’s href property). The port property is the piece of the host after the colon.
Previous << 1 .. 41 42 43 44 45 46 < 47 > 48 49 50 51 52 53 .. 72 >> Next