TOC PREV NEXT INDEX

domref



name


name returns the name of the current FORM element as a string.

Syntax

name = form.name
 
form.name = name
 

Parameters

name is a string.

Example

form1 = document.getElementById("form1").name;
 
if (form1 != document.form.form1) {
 
   // browser doesn't support this form of reference
 
}
 

Notes

Note that this property is read/write, which means that you can change the name of a form or set it if it hasn't been set alreaDY.

Specification

name


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX