org.w3c.dom.html2

Interface HTMLLegendElement

public interface HTMLLegendElement extends HTMLElement

Provides a caption for a FIELDSET grouping. See the LEGEND element definition in HTML 4.01.

See also the Document Object Model (DOM) Level 2 HTML Specification.

Method Summary
StringgetAccessKey()
A single character access key to give access to the form control.
StringgetAlign()
Text alignment relative to FIELDSET.
HTMLFormElementgetForm()
Returns the FORM element containing this control.
voidsetAccessKey(String accessKey)
A single character access key to give access to the form control.
voidsetAlign(String align)
Text alignment relative to FIELDSET.

Method Detail

getAccessKey

public String getAccessKey()
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.01.

getAlign

public String getAlign()
Text alignment relative to FIELDSET. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.

getForm

public HTMLFormElement getForm()
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

setAccessKey

public void setAccessKey(String accessKey)
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.01.

setAlign

public void setAlign(String align)
Text alignment relative to FIELDSET. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.