Online
 
Sunday, 23 November 2008
 
 

JavaScript - API Reference | Print |  E-Mail
 

Synopsis

document.anchors[index]

document.anchors[name]

Description

An Anchor object represents an <a> tag with a name attribute, which serves to create a named position in a document.

Properties

name

The value of the name attribute of the <a> tag.

See Also

Document.anchors[ ], Link, Location.hash

 

a Java applet

Synopsis

document.applets[i]

document.applets[appletName]

document.appletName

Properties & Methods

The properties and methods of an Applet object are the same as the public fields and methods of the Java applet it represents. JavaScript code can query and set the Java fields and invoke the Java methods of the applet.

the arguments of a function

Synopsis

arguments[n]

arguments.length

Description

The Arguments object is defined only within a function body, and within every function body, the local variable arguments refers to the Arguments object for that function. The Arguments object is an array whose elements are the values that were passed as arguments to the function. Element 0 is the first argument, element 1 is the second argument, and so on. All values passed as arguments become array elements of the Arguments object, whether or not those arguments are given names in the function declaration.

Properties

callee

A reference to the function that is currently executing. Useful for recursion in unnamed functions. JS 1.2; JScript 5.5; ECMA v1; only defined within a function body.

length

The number of arguments passed to the function. JS 1.1; JScript 2; ECMA v1; only defined within a function body.


This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Jumbo Coklat
 
Top! Top!