org.w3c.dom.html

Interface HTMLLegendElement

public interface HTMLLegendElement extends HTMLElement

Provides a caption for a FIELDSET grouping. See the LEGEND element definition in HTML 4.0.
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.Returns null if this control is not within the context of a form.
voidsetAccessKey(String accessKey)
voidsetAlign(String align)

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.0.

getAlign

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

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)

setAlign

public void setAlign(String align)