Class HTMLIFrameElement

  • 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 HTMLIFrameElement
    extends HTMLElement
    A JavaScript object for HtmlInlineFrame.
    See Also:
    Serialized Form
    • Field Detail

      • isAttachedToPageDuringOnload_

        private boolean isAttachedToPageDuringOnload_
        During setOnload(Object), was the element attached to the page.
    • Constructor Detail

      • HTMLIFrameElement

        public HTMLIFrameElement()
        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
      • setOnload

        public void setOnload​(java.lang.Object eventHandler)
        Sets the onload event handler for this element.
        Overrides:
        setOnload in class HTMLElement
        Parameters:
        eventHandler - the onload event handler for this element
      • getAlign

        public java.lang.String getAlign()
        Returns the value of the align property.
        Returns:
        the value of the align property
      • setAlign

        public void setAlign​(java.lang.String align)
        Sets the value of the align property.
        Parameters:
        align - the value of the align property
      • getWidth_js

        public java.lang.String getWidth_js()
        Returns the value of the width property.
        Returns:
        the value of the width property
      • setWidth_js

        public void setWidth_js​(java.lang.String width)
        Sets the value of the width property.
        Parameters:
        width - the value of the width property
      • getHeight_js

        public java.lang.String getHeight_js()
        Returns the value of the width property.
        Returns:
        the value of the width property
      • setHeight_js

        public void setHeight_js​(java.lang.String height)
        Sets the value of the height property.
        Parameters:
        height - the value of the height property
      • onRefresh

        public void onRefresh()
        To be called when the frame is being refreshed.