JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class Window

    • Constructor Detail

      • Window

        public Window()
    • Method Detail

      • alert

        public void alert(Object message)
        The JavaScript function alert().
        Parameters:
        message - the message
      • btoa

        public String btoa(String stringToEncode)
        Creates a base-64 encoded ASCII string from a string of binary data.
        Specified by:
        btoa in interface WindowOrWorkerGlobalScope
        Parameters:
        stringToEncode - string to encode
        Returns:
        the encoded string
      • atob

        public String atob(String encodedData)
        Decodes a string of data which has been encoded using base-64 encoding.
        Specified by:
        atob in interface WindowOrWorkerGlobalScope
        Parameters:
        encodedData - the encoded string
        Returns:
        the decoded value
      • confirm

        public boolean confirm(String message)
        The JavaScript function confirm.
        Parameters:
        message - the message
        Returns:
        true if ok was pressed, false if cancel was pressed
      • prompt

        public String prompt(String message,
         Object defaultValue)
        The JavaScript function prompt.
        Parameters:
        message - the message
        defaultValue - the default value displayed in the text input field
        Returns:
        the value typed in or null if the user pressed cancel
      • getDocument_js

        public DocumentProxy getDocument_js()
        Returns the JavaScript property document.
        Returns:
        the document
      • getDocument

        public Document getDocument()
        Returns the window's current document.
        Returns:
        the window's current document
      • getEvent

        public Object getEvent()
        Returns the current event.
        Returns:
        the current event, or null if no event is currently available
      • getCurrentEvent

        public Event getCurrentEvent()
        Returns the current event (used internally regardless of the emulation mode).
        Returns:
        the current event, or null if no event is currently available
      • setCurrentEvent

        public void setCurrentEvent(Event event)
        Sets the current event.
        Parameters:
        event - the current event
      • open

        public WindowProxy open(Object url,
         Object name,
         Object features,
         Object replace)
        Opens a new window.
        Parameters:
        url - when a new document is opened, url is a String that specifies a MIME type for the document. When a new window is opened, url is a String that specifies the URL to render in the new window
        name - the name
        features - the features
        replace - whether to replace in the history list or no
        Returns:
        the newly opened window, or null if popup windows have been disabled
        See Also:
        WebClientOptions.isPopupBlockerEnabled(), MSDN documentation
      • getNavigator

        public Navigator getNavigator()
        Returns the JavaScript property navigator.
        Returns:
        the navigator
      • getClientInformation

        public Object getClientInformation()
        Returns the JavaScript property clientInformation.
        Returns:
        the client information
      • setClientInformation

        public void setClientInformation(Object clientInformation)
        Parameters:
        clientInformation - the new value
      • getWindow_js

        public Window getWindow_js()
        Returns the window property. This is a synonym for self.
        Returns:
        the window property (a reference to this)
      • getLocalStorage

        public Storage getLocalStorage()
        Returns the localStorage property.
        Returns:
        the localStorage property
      • getSessionStorage

        public Storage getSessionStorage()
        Returns the sessionStorage property.
        Returns:
        the sessionStorage property
      • getStorage

        public Storage getStorage(StorageHolder.Type storageType)
        Gets the storage of the specified type.
        Parameters:
        storageType - the type
        Returns:
        the storage
      • getLocation

        public Location getLocation()
        Returns the location property.
        Returns:
        the location property
      • setLocation

        public void setLocation(String newLocation)
         throws IOException 
        Sets the location property. This will cause a reload of the window.
        Parameters:
        newLocation - the URL of the new content
        Throws:
        IOException - when location loading fails
      • dump

        public void dump(String message)
        Logs messages to the browser's standard output (stdout). If the browser was started from a terminal, output sent to dump() will appear in the terminal. Output from dump() is not sent to the browser's developer tools console. To log to the developer tools console, use console.log().

        HtmlUnit always uses the WebConsole.

        Parameters:
        message - the message to log
      • animateAnimationsFrames

        public int animateAnimationsFrames()
        Invokes all the animation callbacks registered for this window by calling requestAnimationFrame(Object) once.
        Returns:
        the number of pending animation callbacks
      • requestAnimationFrame

        public int requestAnimationFrame(Object callback)
        Add callback to the list of animationFrames.
        Parameters:
        callback - the function to call when it's time to update the animation
        Returns:
        an identification id
        See Also:
        MDN Doc
      • cancelAnimationFrame

        public void cancelAnimationFrame(Object requestId)
        Remove the callback from the list of animationFrames.
        Parameters:
        requestId - the ID value returned by the call to window.requestAnimationFrame()
        See Also:
        MDN Doc
      • getScreen

        public Screen getScreen()
        Returns the screen property.
        Returns:
        the screen property
      • getHistory

        public History getHistory()
        Returns the history property.
        Returns:
        the history property
      • getExternal

        public External getExternal()
        Returns the external property.
        Returns:
        the external property
      • initialize

        public void initialize(WebWindow webWindow,
         Page pageToEnclose)
        Initializes this window.
        Parameters:
        webWindow - the web window corresponding to this window
        pageToEnclose - the page that will become the enclosing page
      • initialize

        public void initialize(Page enclosedPage)
        Initialize the object.
        Parameters:
        enclosedPage - the page containing the JavaScript
      • initialize

        public void initialize()
        Initializes the object. Only called for Windows with no contents.
      • getTop

        public Object getTop()
        Returns the value of the top property.
        Returns:
        the value of top
      • getOpener

        public Object getOpener()
        Returns the value of the opener property.
        Returns:
        the value of the opener, or null for a top level window
      • setOpener

        public void setOpener(Object newValue)
        Sets the opener property.
        Parameters:
        newValue - the new value
      • getFrameElement

        public HtmlUnitScriptable getFrameElement()
        Returns the (i)frame in which the window is contained.
        Returns:
        null for a top level window
      • getLength

        public Object getLength()
        Returns the number of frames contained by this window.
        Returns:
        the number of frames contained by this window
      • jsGetLength

        public Object jsGetLength()
        Gets the length property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Returns:
        the shadow value if set otherwise the number of frames
      • jsSetLength

        public void jsSetLength(org.htmlunit.corejs.javascript.Scriptable lengthShadow)
        Sets the length property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Parameters:
        lengthShadow - the value to overwrite the defined property value
      • getSelf

        public Object getSelf()
        Returns the self property.
        Returns:
        this
      • jsGetSelf

        public Object jsGetSelf()
        Gets the self property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Returns:
        the shadow value if set otherwise the number of frames
      • jsSetSelf

        public void jsSetSelf(org.htmlunit.corejs.javascript.Scriptable selfShadow)
        Sets the self property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Parameters:
        selfShadow - the value to overwrite the defined property value
      • getParent

        public Object getParent()
        Returns the value of the parent property.
        Returns:
        the value of the parent property
      • jsGetParent

        public Object jsGetParent()
        Gets the parent property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Returns:
        the shadow value if set otherwise the number of frames
      • jsSetParent

        public void jsSetParent(org.htmlunit.corejs.javascript.Scriptable parentShadow)
        Sets the parent property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Parameters:
        parentShadow - the value to overwrite the defined property value
      • getFrames_js

        public Object getFrames_js()
        Returns the value of the frames property.
        Returns:
        the value of the frames property
      • jsGetFrames

        public Object jsGetFrames()
        Gets the frames property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Returns:
        the shadow value if set otherwise the number of frames
      • jsSetFrames

        public void jsSetFrames(org.htmlunit.corejs.javascript.Scriptable framesShadow)
        Sets the frames property. Setting this shadows the defined value (see https://webidl.spec.whatwg.org/#Replaceable)
        Parameters:
        framesShadow - the value to overwrite the defined property value
      • getWebWindow

        public WebWindow getWebWindow()
        Returns the WebWindow associated with this Window.
        Returns:
        the WebWindow
      • focus

        public void focus()
        Sets the focus to this element.
      • blur

        public void blur()
        Removes focus from this element.
      • close_js

        public void close_js()
        Closes this window.
      • isClosed

        public boolean isClosed()
        Indicates if this window is closed.
        Returns:
        true if this window is closed
      • moveTo

        public void moveTo(int x,
         int y)
        Does nothing.
        Parameters:
        x - the horizontal position
        y - the vertical position
      • moveBy

        public void moveBy(int x,
         int y)
        Does nothing.
        Parameters:
        x - the horizontal position
        y - the vertical position
      • resizeBy

        public void resizeBy(int width,
         int height)
        Does nothing.
        Parameters:
        width - the width offset
        height - the height offset
      • resizeTo

        public void resizeTo(int width,
         int height)
        Does nothing.
        Parameters:
        width - the width of the Window in pixel after resize
        height - the height of the Window in pixel after resize
      • scrollByLines

        public void scrollByLines(int lines)
        Scrolls the window content down by the specified number of lines.
        Parameters:
        lines - the number of lines to scroll down
      • scrollByPages

        public void scrollByPages(int pages)
        Scrolls the window content down by the specified number of pages.
        Parameters:
        pages - the number of pages to scroll down
      • getOnload

        public org.htmlunit.corejs.javascript.Function getOnload()
        Returns the onload property. Note that this is not necessarily a function if something else has been set.
        Returns:
        the onload property
      • setOnload

        public void setOnload(Object onload)
        Sets the value of the onload event handler.
        Parameters:
        onload - the new handler
      • setOnblur

        public void setOnblur(Object onblur)
        Sets the value of the onblur event handler.
        Parameters:
        onblur - the new handler
      • setOnclick

        public void setOnclick(Object onclick)
        Sets the value of the onclick event handler.
        Parameters:
        onclick - the new handler
      • getOndblclick

        public org.htmlunit.corejs.javascript.Function getOndblclick()
        Returns the ondblclick property (not necessary a function if something else has been set).
        Returns:
        the ondblclick property
      • setOndblclick

        public void setOndblclick(Object ondblclick)
        Sets the value of the ondblclick event handler.
        Parameters:
        ondblclick - the new handler
      • getOnhashchange

        public org.htmlunit.corejs.javascript.Function getOnhashchange()
        Returns the onhashchange property (not necessary a function if something else has been set).
        Returns:
        the onhashchange property
      • setOnhashchange

        public void setOnhashchange(Object onhashchange)
        Sets the value of the onhashchange event handler.
        Parameters:
        onhashchange - the new handler
      • getName

        public String getName()
        Returns the value of the window's name property.
        Returns:
        the value of the window's name property
      • setName

        public void setName(String name)
        Sets the value of the window's name property.
        Parameters:
        name - the value of the window's name property
      • getOnbeforeunload

        public org.htmlunit.corejs.javascript.Function getOnbeforeunload()
        Returns the value of the window's onbeforeunload property.
        Returns:
        the value of the window's onbeforeunload property
      • setOnbeforeunload

        public void setOnbeforeunload(Object onbeforeunload)
        Sets the value of the window's onbeforeunload property.
        Parameters:
        onbeforeunload - the value of the window's onbeforeunload property
      • setOnerror

        public void setOnerror(Object onerror)
        Sets the value of the window's onerror property.
        Parameters:
        onerror - the value of the window's onerror property
      • setOnmessage

        public void setOnmessage(Object onmessage)
        Sets the value of the window's onmessage property.
        Parameters:
        onmessage - the value of the window's onmessage property
      • triggerOnError

        public void triggerOnError(ScriptException e)
        Triggers the onerror handler, if one has been set.
        Parameters:
        e - the error that needs to be reported
      • getWithPreemption

        protected Object getWithPreemption(String name)

        Called by HtmlUnitScriptable.get(String, Scriptable) to allow retrieval of the property before the prototype chain is searched.

        IMPORTANT: This method is invoked *very* often by Rhino. If you override this method, the implementation needs to be as fast as possible!

        Overrides:
        getWithPreemption in class HtmlUnitScriptable
        Parameters:
        name - the property name
        Returns:
        Scriptable.NOT_FOUND if not found
      • getProxy

        public static WindowProxy getProxy(WebWindow w)
        Returns the proxy for the specified window.
        Parameters:
        w - the window whose proxy is to be returned
        Returns:
        the proxy for the specified window
      • getStatus

        public String getStatus()
        Returns the text from the status line.
        Returns:
        the status line text
      • setStatus

        public void setStatus(String message)
        Sets the text from the status line.
        Parameters:
        message - the status line text
      • getInnerWidth

        public int getInnerWidth()
        Returns the innerWidth.
        Returns:
        the innerWidth
        See Also:
        Mozilla doc
      • setInnerWidth

        public void setInnerWidth(int width)
        Sets the innerWidth.
        Parameters:
        width - the innerWidth
      • getOuterWidth

        public int getOuterWidth()
        Returns the outerWidth.
        Returns:
        the outerWidth
        See Also:
        Mozilla doc
      • setOuterWidth

        public void setOuterWidth(int width)
        Sets the outerWidth.
        Parameters:
        width - the outerWidth
      • getInnerHeight

        public int getInnerHeight()
        Returns the innerHeight.
        Returns:
        the innerHeight
        See Also:
        Mozilla doc
      • setInnerHeight

        public void setInnerHeight(int height)
        Sets the innerHeight.
        Parameters:
        height - the innerHeight
      • getOuterHeight

        public int getOuterHeight()
        Returns the outerHeight.
        Returns:
        the outerHeight
        See Also:
        Mozilla doc
      • setOuterHeight

        public void setOuterHeight(int height)
        Sets the outerHeight.
        Parameters:
        height - the outerHeight
      • getComputedStyle

        public ComputedCSSStyleDeclaration getComputedStyle(Object element,
         String pseudoElement)
        Returns computed style of the element. Computed style represents the final computed values of all CSS properties for the element. This method's return value is of the same type as that of element.style, but the value returned by this method is read-only.
        Parameters:
        element - the element
        pseudoElement - a string specifying the pseudo-element to match (may be null); e.g. ':before'
        Returns:
        the computed style
      • getSelection

        public Selection getSelection()
        Returns the current selection.
        Returns:
        the current selection
      • getSelectionImpl

        public Selection getSelectionImpl()
        Returns the current selection.
        Returns:
        the current selection
      • getControllers

        public Object getControllers()
        Gets the controllers. The result doesn't currently matter but it is important to return an object as some JavaScript libraries check it.
        Returns:
        some object
        See Also:
        Mozilla documentation
      • setControllers

        public void setControllers(Object value)
        Sets the controllers.
        Parameters:
        value - the new value
      • getMozInnerScreenX

        public int getMozInnerScreenX()
        Returns the value of mozInnerScreenX property.
        Returns:
        the value of mozInnerScreenX property
      • getMozInnerScreenXffesr_js

        public int getMozInnerScreenXffesr_js()
        Returns the value of mozInnerScreenX property.
        Returns:
        the value of mozInnerScreenX property
      • getMozInnerScreenY

        public int getMozInnerScreenY()
        Returns the value of mozInnerScreenY property.
        Returns:
        the value of mozInnerScreenY property
      • stop

        public void stop()
        Should implement the stop() function on the window object. (currently empty implementation)
        See Also:
        window.stop
      • getPageXOffset

        public int getPageXOffset()
        Returns the value of pageXOffset property.
        Returns:
        the value of pageXOffset property
      • getPageYOffset

        public int getPageYOffset()
        Returns the value of pageYOffset property.
        Returns:
        the value of pageYOffset property
      • getScrollX

        public int getScrollX()
        Returns the value of scrollX property.
        Returns:
        the value of scrollX property
      • getScrollY

        public int getScrollY()
        Returns the value of scrollY property.
        Returns:
        the value of scrollY property
      • getNetscape

        public Netscape getNetscape()
        Returns:
        the value of netscape property
      • dispatchEvent

        public boolean dispatchEvent(Event event)
        Dispatches an event into the event system (standards-conformant browsers only). See the Gecko DOM reference for more information.
        Overrides:
        dispatchEvent in class EventTarget
        Parameters:
        event - the event to be dispatched
        Returns:
        false if at least one of the event handlers which handled the event called preventDefault; true otherwise
      • setOnchange

        public void setOnchange(Object onchange)
        Setter for the onchange event handler.
        Parameters:
        onchange - the handler
      • setOnsubmit

        public void setOnsubmit(Object onsubmit)
        Setter for the onsubmit event handler.
        Parameters:
        onsubmit - the handler
      • getPort

        public static int getPort(URL url)
        Returns the port of the specified URL.
        Parameters:
        url - the URL
        Returns:
        the port
      • getPerformance

        public org.htmlunit.corejs.javascript.Scriptable getPerformance()
        The performance attribute is defined as replacable (https://w3c.github.io/hr-time/#the-performance-attribute) but not implemented as that.
        Returns:
        the value of the performance property
      • setPerformance

        public void setPerformance(org.htmlunit.corejs.javascript.Scriptable performance)
        The performance attribute is defined as replacable (https://w3c.github.io/hr-time/#the-performance-attribute) but not implemented as that.

        Sets the performance property.

        Parameters:
        performance - the value to overwrite the defined property value
      • getDevicePixelRatio

        public int getDevicePixelRatio()
        Returns the devicePixelRatio property.
        Returns:
        the devicePixelRatio property
      • getStyleMedia

        public StyleMedia getStyleMedia()
        Returns the styleMedia property.
        Returns:
        the styleMedia property
      • matchMedia

        public MediaQueryList matchMedia(String mediaQueryString)
        Returns a new MediaQueryList object representing the parsed results of the specified media query string.
        Parameters:
        mediaQueryString - the media query
        Returns:
        a new MediaQueryList object
      • find

        public boolean find(String search,
         boolean caseSensitive,
         boolean backwards,
         boolean wrapAround,
         boolean wholeWord,
         boolean searchInFrames,
         boolean showDialog)
        Stub only at the moment.
        Parameters:
        search - the text string for which to search
        caseSensitive - if true, specifies a case-sensitive search
        backwards - if true, specifies a backward search
        wrapAround - if true, specifies a wrap around search
        wholeWord - if true, specifies a whole word search
        searchInFrames - if true, specifies a search in frames
        showDialog - if true, specifies a show Dialog.
        Returns:
        false
      • getSpeechSynthesis

        public SpeechSynthesis getSpeechSynthesis()
        Returns the speechSynthesis property.
        Returns:
        the speechSynthesis property
      • isOffscreenBuffering

        public boolean isOffscreenBuffering()
        Returns the offscreenBuffering property.
        Returns:
        the offscreenBuffering property
      • getCrypto

        public Crypto getCrypto()
        Returns the crypto property.
        Returns:
        the crypto property
      • setOnfocus

        public void setOnfocus(Object onfocus)
        Sets the onfocus event handler.
        Parameters:
        onfocus - the onfocus event handler
      • setOndragend

        public void setOndragend(Object ondragend)
        Sets the ondragend event handler.
        Parameters:
        ondragend - the ondragend event handler
      • setOninvalid

        public void setOninvalid(Object oninvalid)
        Sets the oninvalid event handler.
        Parameters:
        oninvalid - the oninvalid event handler
      • setOnpointerout

        public void setOnpointerout(Object onpointerout)
        Sets the onpointerout event handler.
        Parameters:
        onpointerout - the onpointerout event handler
      • setOnratechange

        public void setOnratechange(Object onratechange)
        Sets the onratechange event handler.
        Parameters:
        onratechange - the onratechange event handler
      • setOnanimationiteration

        public void setOnanimationiteration(Object onanimationiteration)
        Sets the onanimationiteration event handler.
        Parameters:
        onanimationiteration - the onanimationiteration event handler
      • setOncanplaythrough

        public void setOncanplaythrough(Object oncanplaythrough)
        Sets the oncanplaythrough event handler.
        Parameters:
        oncanplaythrough - the oncanplaythrough event handler
      • setOncancel

        public void setOncancel(Object oncancel)
        Sets the oncancel event handler.
        Parameters:
        oncancel - the oncancel event handler
      • setOnpointerenter

        public void setOnpointerenter(Object onpointerenter)
        Sets the onpointerenter event handler.
        Parameters:
        onpointerenter - the onpointerenter event handler
      • setOnselect

        public void setOnselect(Object onselect)
        Sets the onselect event handler.
        Parameters:
        onselect - the onselect event handler
      • setOnauxclick

        public void setOnauxclick(Object onauxclick)
        Sets the onauxclick event handler.
        Parameters:
        onauxclick - the onauxclick event handler
      • setOnscroll

        public void setOnscroll(Object onscroll)
        Sets the onscroll event handler.
        Parameters:
        onscroll - the onscroll event handler
      • setOnkeydown

        public void setOnkeydown(Object onkeydown)
        Sets the onkeydown event handler.
        Parameters:
        onkeydown - the onkeydown event handler
      • getOnwebkitanimationstart

        public org.htmlunit.corejs.javascript.Function getOnwebkitanimationstart()
        Returns the onwebkitanimationstart event handler.
        Returns:
        the onwebkitanimationstart event handler
      • setOnwebkitanimationstart

        public void setOnwebkitanimationstart(Object onwebkitanimationstart)
        Sets the onwebkitanimationstart event handler.
        Parameters:
        onwebkitanimationstart - the onwebkitanimationstart event handler
      • setOnkeyup

        public void setOnkeyup(Object onkeyup)
        Sets the onkeyup event handler.
        Parameters:
        onkeyup - the onkeyup event handler
      • setOnreset

        public void setOnreset(Object onreset)
        Sets the onreset event handler.
        Parameters:
        onreset - the onreset event handler
      • setOnkeypress

        public void setOnkeypress(Object onkeypress)
        Sets the onkeypress event handler.
        Parameters:
        onkeypress - the onkeypress event handler
      • setOndrag

        public void setOndrag(Object ondrag)
        Sets the ondrag event handler.
        Parameters:
        ondrag - the ondrag event handler
      • setOnseeked

        public void setOnseeked(Object onseeked)
        Sets the onseeked event handler.
        Parameters:
        onseeked - the onseeked event handler
      • setOnoffline

        public void setOnoffline(Object onoffline)
        Sets the onoffline event handler.
        Parameters:
        onoffline - the onoffline event handler
      • setOndeviceorientation

        public void setOndeviceorientation(Object ondeviceorientation)
        Sets the ondeviceorientation event handler.
        Parameters:
        ondeviceorientation - the ondeviceorientation event handler
      • setOntoggle

        public void setOntoggle(Object ontoggle)
        Sets the ontoggle event handler.
        Parameters:
        ontoggle - the ontoggle event handler
      • setOnplay

        public void setOnplay(Object onplay)
        Sets the onplay event handler.
        Parameters:
        onplay - the onplay event handler
      • setOncontextmenu

        public void setOncontextmenu(Object oncontextmenu)
        Sets the oncontextmenu event handler.
        Parameters:
        oncontextmenu - the oncontextmenu event handler
      • setOnmousemove

        public void setOnmousemove(Object onmousemove)
        Sets the onmousemove event handler.
        Parameters:
        onmousemove - the onmousemove event handler
      • setOnpointermove

        public void setOnpointermove(Object onpointermove)
        Sets the onpointermove event handler.
        Parameters:
        onpointermove - the onpointermove event handler
      • setOnmouseover

        public void setOnmouseover(Object onmouseover)
        Sets the onmouseover event handler.
        Parameters:
        onmouseover - the onmouseover event handler
      • setOnlostpointercapture

        public void setOnlostpointercapture(Object onlostpointercapture)
        Sets the onlostpointercapture event handler.
        Parameters:
        onlostpointercapture - the onlostpointercapture event handler
      • setOnpointerover

        public void setOnpointerover(Object onpointerover)
        Sets the onpointerover event handler.
        Parameters:
        onpointerover - the onpointerover event handler
      • setOnclose

        public void setOnclose(Object onclose)
        Sets the onclose event handler.
        Parameters:
        onclose - the onclose event handler
      • setOnanimationend

        public void setOnanimationend(Object onanimationend)
        Sets the onanimationend event handler.
        Parameters:
        onanimationend - the onanimationend event handler
      • setOndragenter

        public void setOndragenter(Object ondragenter)
        Sets the ondragenter event handler.
        Parameters:
        ondragenter - the ondragenter event handler
      • setOnafterprint

        public void setOnafterprint(Object onafterprint)
        Sets the onafterprint event handler.
        Parameters:
        onafterprint - the onafterprint event handler
      • setOnmozfullscreenerror

        public void setOnmozfullscreenerror(Object onmozfullscreenerror)
        Sets the onmozfullscreenerror event handler.
        Parameters:
        onmozfullscreenerror - the onmozfullscreenerror event handler
      • setOnmouseleave

        public void setOnmouseleave(Object onmouseleave)
        Sets the onmouseleave event handler.
        Parameters:
        onmouseleave - the onmouseleave event handler
      • setOnmousewheel

        public void setOnmousewheel(Object onmousewheel)
        Sets the onmousewheel event handler.
        Parameters:
        onmousewheel - the onmousewheel event handler
      • setOnseeking

        public void setOnseeking(Object onseeking)
        Sets the onseeking event handler.
        Parameters:
        onseeking - the onseeking event handler
      • setOncuechange

        public void setOncuechange(Object oncuechange)
        Sets the oncuechange event handler.
        Parameters:
        oncuechange - the oncuechange event handler
      • setOnpageshow

        public void setOnpageshow(Object onpageshow)
        Sets the onpageshow event handler.
        Parameters:
        onpageshow - the onpageshow event handler
      • getOnmozfullscreenchange

        public org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
        Returns the onmozfullscreenchange event handler.
        Returns:
        the onmozfullscreenchange event handler
      • setOnmozfullscreenchange

        public void setOnmozfullscreenchange(Object onmozfullscreenchange)
        Sets the onmozfullscreenchange event handler.
        Parameters:
        onmozfullscreenchange - the onmozfullscreenchange event handler
      • setOndurationchange

        public void setOndurationchange(Object ondurationchange)
        Sets the ondurationchange event handler.
        Parameters:
        ondurationchange - the ondurationchange event handler
      • setOnplaying

        public void setOnplaying(Object onplaying)
        Sets the onplaying event handler.
        Parameters:
        onplaying - the onplaying event handler
      • setOnended

        public void setOnended(Object onended)
        Sets the onended event handler.
        Parameters:
        onended - the onended event handler
      • setOnloadeddata

        public void setOnloadeddata(Object onloadeddata)
        Sets the onloadeddata event handler.
        Parameters:
        onloadeddata - the onloadeddata event handler
      • setOnunhandledrejection

        public void setOnunhandledrejection(Object onunhandledrejection)
        Sets the onunhandledrejection event handler.
        Parameters:
        onunhandledrejection - the onunhandledrejection event handler
      • setOnmouseout

        public void setOnmouseout(Object onmouseout)
        Sets the onmouseout event handler.
        Parameters:
        onmouseout - the onmouseout event handler
      • setOnsuspend

        public void setOnsuspend(Object onsuspend)
        Sets the onsuspend event handler.
        Parameters:
        onsuspend - the onsuspend event handler
      • setOnwaiting

        public void setOnwaiting(Object onwaiting)
        Sets the onwaiting event handler.
        Parameters:
        onwaiting - the onwaiting event handler
      • setOncanplay

        public void setOncanplay(Object oncanplay)
        Sets the oncanplay event handler.
        Parameters:
        oncanplay - the oncanplay event handler
      • setOnmousedown

        public void setOnmousedown(Object onmousedown)
        Sets the onmousedown event handler.
        Parameters:
        onmousedown - the onmousedown event handler
      • setOnlanguagechange

        public void setOnlanguagechange(Object onlanguagechange)
        Sets the onlanguagechange event handler.
        Parameters:
        onlanguagechange - the onlanguagechange event handler
      • setOnemptied

        public void setOnemptied(Object onemptied)
        Sets the onemptied event handler.
        Parameters:
        onemptied - the onemptied event handler
      • setOnrejectionhandled

        public void setOnrejectionhandled(Object onrejectionhandled)
        Sets the onrejectionhandled event handler.
        Parameters:
        onrejectionhandled - the onrejectionhandled event handler
      • setOnpointercancel

        public void setOnpointercancel(Object onpointercancel)
        Sets the onpointercancel event handler.
        Parameters:
        onpointercancel - the onpointercancel event handler
      • setOnresize

        public void setOnresize(Object onresize)
        Sets the onresize event handler.
        Parameters:
        onresize - the onresize event handler
      • setOnpause

        public void setOnpause(Object onpause)
        Sets the onpause event handler.
        Parameters:
        onpause - the onpause event handler
      • setOnloadstart

        public void setOnloadstart(Object onloadstart)
        Sets the onloadstart event handler.
        Parameters:
        onloadstart - the onloadstart event handler
      • setOnprogress

        public void setOnprogress(Object onprogress)
        Sets the onprogress event handler.
        Parameters:
        onprogress - the onprogress event handler
      • setOnpointerup

        public void setOnpointerup(Object onpointerup)
        Sets the onpointerup event handler.
        Parameters:
        onpointerup - the onpointerup event handler
      • setOnwheel

        public void setOnwheel(Object onwheel)
        Sets the onwheel event handler.
        Parameters:
        onwheel - the onwheel event handler
      • setOnpointerleave

        public void setOnpointerleave(Object onpointerleave)
        Sets the onpointerleave event handler.
        Parameters:
        onpointerleave - the onpointerleave event handler
      • setOnbeforeprint

        public void setOnbeforeprint(Object onbeforeprint)
        Sets the onbeforeprint event handler.
        Parameters:
        onbeforeprint - the onbeforeprint event handler
      • setOnstorage

        public void setOnstorage(Object onstorage)
        Sets the onstorage event handler.
        Parameters:
        onstorage - the onstorage event handler
      • setOnanimationstart

        public void setOnanimationstart(Object onanimationstart)
        Sets the onanimationstart event handler.
        Parameters:
        onanimationstart - the onanimationstart event handler
      • setOntimeupdate

        public void setOntimeupdate(Object ontimeupdate)
        Sets the ontimeupdate event handler.
        Parameters:
        ontimeupdate - the ontimeupdate event handler
      • setOnpagehide

        public void setOnpagehide(Object onpagehide)
        Sets the onpagehide event handler.
        Parameters:
        onpagehide - the onpagehide event handler
      • getOnwebkitanimationiteration

        public org.htmlunit.corejs.javascript.Function getOnwebkitanimationiteration()
        Returns the onwebkitanimationiteration event handler.
        Returns:
        the onwebkitanimationiteration event handler
      • setOnwebkitanimationiteration

        public void setOnwebkitanimationiteration(Object onwebkitanimationiteration)
        Sets the onwebkitanimationiteration event handler.
        Parameters:
        onwebkitanimationiteration - the onwebkitanimationiteration event handler
      • setOnabort

        public void setOnabort(Object onabort)
        Sets the onabort event handler.
        Parameters:
        onabort - the onabort event handler
      • setOnloadedmetadata

        public void setOnloadedmetadata(Object onloadedmetadata)
        Sets the onloadedmetadata event handler.
        Parameters:
        onloadedmetadata - the onloadedmetadata event handler
      • setOnmouseup

        public void setOnmouseup(Object onmouseup)
        Sets the onmouseup event handler.
        Parameters:
        onmouseup - the onmouseup event handler
      • setOndragover

        public void setOndragover(Object ondragover)
        Sets the ondragover event handler.
        Parameters:
        ondragover - the ondragover event handler
      • setOnonline

        public void setOnonline(Object ononline)
        Sets the ononline event handler.
        Parameters:
        ononline - the ononline event handler
      • setOnsearch

        public void setOnsearch(Object onsearch)
        Sets the onsearch event handler.
        Parameters:
        onsearch - the onsearch event handler
      • setOninput

        public void setOninput(Object oninput)
        Sets the oninput event handler.
        Parameters:
        oninput - the oninput event handler
      • getOnwebkittransitionend

        public org.htmlunit.corejs.javascript.Function getOnwebkittransitionend()
        Returns the onwebkittransitionend event handler.
        Returns:
        the onwebkittransitionend event handler
      • setOnwebkittransitionend

        public void setOnwebkittransitionend(Object onwebkittransitionend)
        Sets the onwebkittransitionend event handler.
        Parameters:
        onwebkittransitionend - the onwebkittransitionend event handler
      • setOndevicemotion

        public void setOndevicemotion(Object ondevicemotion)
        Sets the ondevicemotion event handler.
        Parameters:
        ondevicemotion - the ondevicemotion event handler
      • setOnstalled

        public void setOnstalled(Object onstalled)
        Sets the onstalled event handler.
        Parameters:
        onstalled - the onstalled event handler
      • setOnmouseenter

        public void setOnmouseenter(Object onmouseenter)
        Sets the onmouseenter event handler.
        Parameters:
        onmouseenter - the onmouseenter event handler
      • setOndragleave

        public void setOndragleave(Object ondragleave)
        Sets the ondragleave event handler.
        Parameters:
        ondragleave - the ondragleave event handler
      • setOnpointerdown

        public void setOnpointerdown(Object onpointerdown)
        Sets the onpointerdown event handler.
        Parameters:
        onpointerdown - the onpointerdown event handler
      • setOndrop

        public void setOndrop(Object ondrop)
        Sets the ondrop event handler.
        Parameters:
        ondrop - the ondrop event handler
      • setOnunload

        public void setOnunload(Object onunload)
        Sets the onunload event handler.
        Parameters:
        onunload - the onunload event handler
      • setOnwebkitanimationend

        public void setOnwebkitanimationend(Object onwebkitanimationend)
        Sets the onwebkitanimationend event handler.
        Parameters:
        onwebkitanimationend - the onwebkitanimationend event handler
      • setOndragstart

        public void setOndragstart(Object ondragstart)
        Sets the ondragstart event handler.
        Parameters:
        ondragstart - the ondragstart event handler
      • setOntransitionend

        public void setOntransitionend(Object ontransitionend)
        Sets the ontransitionend event handler.
        Parameters:
        ontransitionend - the ontransitionend event handler
      • getOndeviceorientationabsolute

        public org.htmlunit.corejs.javascript.Function getOndeviceorientationabsolute()
        Returns the ondeviceorientationabsolute event handler.
        Returns:
        the ondeviceorientationabsolute event handler
      • setOndeviceorientationabsolute

        public void setOndeviceorientationabsolute(Object ondeviceorientationabsolute)
        Sets the ondeviceorientationabsolute event handler.
        Parameters:
        ondeviceorientationabsolute - the ondeviceorientationabsolute event handler
      • setOnvolumechange

        public void setOnvolumechange(Object onvolumechange)
        Sets the onvolumechange event handler.
        Parameters:
        onvolumechange - the onvolumechange event handler
      • setOngotpointercapture

        public void setOngotpointercapture(Object ongotpointercapture)
        Sets the ongotpointercapture event handler.
        Parameters:
        ongotpointercapture - the ongotpointercapture event handler
      • setOnpopstate

        public void setOnpopstate(Object onpopstate)
        Sets the onpopstate event handler.
        Parameters:
        onpopstate - the onpopstate event handler
      • isIsSecureContext

        public boolean isIsSecureContext()
        Returns:
        a boolean indicating whether the current context is secure (true) or not (false).
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /