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

Javascript for dummies. Quick Reference - Vander

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

The src property of the image object reflects the value of the SRC attribute defined as part of the HTML < I MG> tag. A valid value for this property is a URL for the image to be loaded. Image.src
The status property of the window object contains a text value that appears in the window’s status bar. You can change the status property’s value.
The status property is different from the defaul tStatus property. The value of the defaul tStatus property is displayed in the status bar when nothing else is going on. In contrast, the value of the status property is displayed for a specific reason — for example, in response to an onMouseOver event (see also Part VIII, “Event Handlers,” for more on events).
The value forthesuffixes property of the mi meTypes array represents a string listing, separated by commas, of all possible file suffixes (file suffixes are sometimes called file extensions) available for each corresponding MIME type.
navi gator.mi meTypes[0].suffixes
target (form)
Use the target property of a f о rm to access a string that specifies the window in which you want to receive responses from the server. The value forform.targetis initially defined by the TARGET attribute as part of the <F0RM> . . . </ F0RM> tag pair, but you can change it.
target ((ink, area)
Use the target property of a 1 i n к or a r e a object to access a string that identifies the name of the window a linked (or area mapped) document should be loaded into. The string value for 1 i n к. t a r g e t is initially defined by the T A R G E T attribute of the <A> . . . </A> tag pair, and the string value for area .target is initially defined by the T A R G E T attribute of the < A R E A > tag; you can change the values for both if you wish.
// same syntax for both link and area objects document.1i n к s[0].target
Use the text property of the option object to access the text that follows an<0PTI0N> tag that is defined as part of a sel ect object. You can change the value for this object.
At the time of this writing, the options[0].text property is read-only in Internet Explorer 3.0.
The title property of the document object enables you to access the title of a document (the text that is defined between the <TITLE>. . ,</TITLE> tag pair). The title property’s value is read-only. For example:
<HEADXTITLE> Welcome to Bertram's Beanie Emporium </TITLEX/HEAD>
The top property of the wi ndow object refers to the topmost window that contains frames or nested framesets. Its value is read-only.
The type property is available on many different objects. The type property represents the HTML TYPE attribute for an object.
f At the time of this writing, only Netscape Navigator Version 3.0
\Яг/ supports the type property.
Object Usage Return Vatue
button Form.myButton.type "button"
checkbox Form.myCheckbox.type "checkbox"
fi1eUpload document.myForm.myFi1e.type "file"
hi dden Form.myHi dden.type "hi dden"
password Form.myPas sword.type "password"
radi о Form.myRadi о[0].type "radi o"
reset Reset.type "reset"
select Form.mySelect.type "select-one", "select-multi pie” (MULTIPLE)
submi t Form.mySubmi t.type "submit"
text Form.myText.type "text"
texta rea Form.myText area.type "textarea"
type (mimeTypes)
The type property of the mi meTypes array, instead of representing the HTML TYPE attribute the way it does for all of the other objects, represents one of the MIME types supported by a browser session. See also the mi meTypes property described earlier in this part.
navi gator.mimeTypes[0].type
Value 1
The userAgent property of the n a v i g a t о г obj ect enables you to access a string value that represents the user-agent header (some computer-to-computer chit-chat that’s roughly equivalent to “Hey, it’s me again, the machine at port 123.456.7890”). Navigator automatically sends a user-agent header each time a form is submitted from a client browser to a server. Servers use this value to identify the client that’s making a request; it’s read-only.
navi gator.userAgent
The val ue property represents a string that’s associated with the value of whatever object you’re trying to access.
Object Usage Comments
button Form.myButton.value Read-only value is displayed on button face
checkbox Form.myCheckbox.value Value is sent to server when checkbox is clicked (default is "on")
fileUpload Form.myFileUpload.value Reflects the value selected by a user
hidden Form.myHi dden.value Initially reflects the VALUE attribute
option document.myForm.mySelect. optionsCO].value Value is sent to server when option is selected
password Form.myPassword.value Initially reflects the VALUE attribute
Previous << 1 .. 43 44 45 46 47 48 < 49 > 50 51 52 53 54 55 .. 72 >> Next