Properties

This form is here just to study its properties.
See below what its properties are.
Enter a value:

Check if you want: Option 1

Choose your dinner: duck hamburger mixed salad

Last updated:


To know more about objects and properties, click here.


Some properties

property example definition
window See Netscape Javascript Client Reference for a full description of window properties
window.history.length Contains information on the URLs that the client has visited within a window
window.location.href
window.name A unique name used to refer to this window
window.opener Specifies the window name of the calling document when a window is opened using the open method
document See Netscape Javascript Client Reference for a full description of document properties
window.document.alinkColor A string that specifies the ALINK attribute
window.document.bgColor A string that specifies the BGCOLOR attribute
window.document.domain Specifies the domain name of the server that served a document
window.document.fgColor A string that specifies the FGCOLOR attribute
window.document.height The height of the document, in pixels
window.document.lastModified A string that specifies the date the document was last modified
window.document.linkColor A string that specifies the LINK attribute
window.document.referrer A string that specifies the URL of the calling document
window.document.title A string that specifies the contents of the TITLE tag
window.document.URL A string that specifies the complete URL of a document
window.document.vlinkColor A string that specifies the VLINK attribute
window.document.width The width of the document, in pixels
form See Netscape Javascript Client Reference for a full description of form properties
window.document.form_name.action Reflects the ACTION attribute
window.document.form_name.length Reflects the number of elements on a form
window.document.form_name.method Reflects the METHOD attribute
window.document.form_name.name Reflects the NAME attribute
window.document.form_name.target Reflects the TARGET attribute

property example
form elements
   input type=text learn about text object
window.document.form_name.text_name.name
window.document.form_name.text_name.value
window.document.form_name.text_name.value.length
   input type=checkbox learn about checkbox object
window.document.form_name.checkbox_name.name
window.document.form_name.checkbox_name.checked
window.document.form_name.checkbox_name.value
   input type=radio learn about radio object
window.document.form_name.radio_name.name
window.document.form_name.radio_name[0].checked
window.document.form_name.radio_name[1].checked
window.document.form_name.radio_name[2].checked
window.document.form_name.radio_name[0].value
window.document.form_name.radio_name[1].value
window.document.form_name.radio_name[2].value
   input type=button learn about button object
window.document.form_name.button_name.name
window.document.form_name.button_name.value
   input type=submit learn about submit object
window.document.form_name.submit_name.name
window.document.form_name.submit_name.value