com.aspose.html

Class HTMLFormElement

    • Constructor Detail

      • HTMLFormElement

        public HTMLFormElement(DOMName name,
                               Document doc)

        Initializes a new instance of the HTMLFormElement class.

        Parameters:
        name - The DOM name.
        doc - The document.
    • Method Detail

      • getLength

        @DOMNameAttribute(name="length")
        public int getLength()

        The number of form controls in the form.

      • getAcceptCharset

        @DOMNameAttribute(name="acceptCharset")
        public String getAcceptCharset()

        List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.01.

      • setAcceptCharset

        @DOMNameAttribute(name="acceptCharset")
        public void setAcceptCharset(String value)

        List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.01.

      • getAction

        @DOMNameAttribute(name="action")
        public String getAction()

        Server-side form handler. See the action attribute definition in HTML 4.01.

      • setAction

        @DOMNameAttribute(name="action")
        public void setAction(String value)

        Server-side form handler. See the action attribute definition in HTML 4.01.

      • getEnctype

        @DOMNameAttribute(name="enctype")
        public String getEnctype()

        The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.01. The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.

      • setEnctype

        @DOMNameAttribute(name="enctype")
        public void setEnctype(String value)

        The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.01. The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.

      • getTarget

        @DOMNameAttribute(name="target")
        public String getTarget()

        Frame to render the resource in. See the target attribute definition in HTML 4.01.

      • setTarget

        @DOMNameAttribute(name="target")
        public void setTarget(String value)

        Frame to render the resource in. See the target attribute definition in HTML 4.01.

      • submit

        @DOMNameAttribute(name="submit")
        public void submit()

        Submits the form. It performs the same action as a submit button.

      • reset

        @DOMNameAttribute(name="reset")
        public void reset()

        Restores a form element's default values. It performs the same action as a reset button.