Class HTMLFrameElement

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • HTMLFrameElement

      public HTMLFrameElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getSrc

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

      public void setSrc(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:
    • getContentWindow

      public WindowProxy getContentWindow()
      Returns the window the frame contains, if any.
      Returns:
      the window
      See Also:
    • getName

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

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

      private BaseFrameElement getFrame()
    • 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: