Class HTMLFrameElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HTMLFrameElement
    extends HTMLElement
    The JavaScript object HTMLFrameElement.
    See Also:
    Serialized Form
    • Constructor Detail

      • HTMLFrameElement

        public HTMLFrameElement()
        Creates an instance.
    • Method Detail

      • getSrc

        public java.lang.String getSrc()
        Returns the value of URL loaded in the frame.
        Returns:
        the value of this attribute
      • setSrc

        public void setSrc​(java.lang.String src)
        Sets the value of the source of the contained frame.
        Parameters:
        src - the new value
      • getContentDocument

        public DocumentProxy getContentDocument()
        Returns the document the frame contains, if any.
        Returns:
        null if no document is contained
        See Also:
        Gecko DOM Reference
      • getName

        public java.lang.String getName()
        Returns the value of the name attribute.
        Overrides:
        getName in class HTMLElement
        Returns:
        the value of this attribute
      • setName

        public void setName​(java.lang.String name)
        Sets the value of the name attribute.
        Overrides:
        setName in class HTMLElement
        Parameters:
        name - the new value
      • isEndTagForbidden

        protected boolean isEndTagForbidden()
        Returns whether the end tag is forbidden or not.
        Overrides:
        isEndTagForbidden in class HTMLElement
        Returns:
        whether the end tag is forbidden or not
        See Also:
        HTML 4 specs