11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ShowBrowserUI(type,null) Opens a browser-related dialog of a defined type. Allowed<br />

values for type include "LanguageDialog", "OrganizeFavorites", "PrivacySettings", and<br />

"ProgramAccessAndDefaults". <strong>The</strong> second null value parameter is strangely required.<br />

PrivacySettings is only supported in IE6 or later and ProgramAccessAndDefaults<br />

requires Windows XP SP1 or later. (IE5+)<br />

Support<br />

IE4+<br />

Notes<br />

<strong>The</strong> use of this object is not encouraged as it is not only proprietary, but has significant security<br />

implications when misused.<br />

fieldSet, HTMLFieldSetElement (Document Object)<br />

This object corresponds to a (form field grouping) element in the document. Access<br />

to this object is achieved through standard DOM methods like document.getElementById().<br />

Properties<br />

This object has the following property, in addition to those in the Generic HTML Element<br />

object found at the beginning of this section:<br />

form <strong>Reference</strong> to the Form in which the element is contained. (IE6+, MOZ/N6+,<br />

DOM1)<br />

Methods<br />

This object only has the methods listed in the Generic HTML Element object found at the<br />

beginning of this section.<br />

Support<br />

Supported in Internet Explorer 4+, Mozilla/Netscape 6+, DOM1.<br />

File, FileUpload, HTMLInputElement (Document Object)<br />

This object corresponds to an element in the document. Access to this<br />

object is achieved through standard DOM methods (for example,<br />

document.getElementById()) or more commonly through the elements[] array of the form it is<br />

contained in.<br />

Properties<br />

This object has the following properties, in addition to those in the Generic HTML Element<br />

object found at the beginning of this section:<br />

accept String containing a comma-separated list of MIME types the server will accept<br />

for this file upload. (MOZ/N6+, DOM1)<br />

accessKey Single-character string indicating the hotkey that gives the element focus.<br />

(IE4+, MOZ/N6+, DOM1)<br />

defaultValue String containing the original value of the value attribute. (IE4+)<br />

disabled Boolean indicating whether the element is disabled (grayed out). (IE4+,<br />

MOZ/N6+, DOM1)<br />

form Read-only reference to the Form in which the button is contained. (IE4+, MOZ,<br />

N3+, DOM1)<br />

name String holding the name attribute of the element. (IE4+, MOZ, N3+, DOM1)<br />

size String indicating the width in pixels. (IE4+, MOZ/N6+, DOM1)<br />

tabIndex Numeric value indicating the tab order for the object. (IE4+, MOZ/N6+,<br />

DOM1)<br />

type Read-only string value indicating the type of the field, "file". (IE4+, MOZ, N3+,<br />

DOM1)<br />

value Read-only string containing the filename. (IE4+, MOZ, N3+, DOM1)<br />

width <strong>The</strong> width in pixels of the input area. (IE4+)<br />

Methods

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!