public class Window extends EventTarget implements WindowOrWorkerGlobalScope, AutoCloseable
Window.org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction| Modifier and Type | Field and Description | 
|---|---|
| static int | PERSISTENTTo be documented. | 
| static int | TEMPORARYTo be documented. | 
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description | 
|---|
| Window() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | alert(Object message)The JavaScript function  alert(). | 
| int | animateAnimationsFrames()Invokes all the animation callbacks registered for this window by
 calling  requestAnimationFrame(Object)once. | 
| String | atob(String encodedData)Decodes a string of data which has been encoded using base-64 encoding. | 
| void | blur()Removes focus from this element. | 
| String | btoa(String stringToEncode)Creates a base-64 encoded ASCII string from a string of binary data. | 
| void | cancelAnimationFrame(Object requestId)Remove the callback from the list of animationFrames. | 
| void | captureEvents(String type)Does nothing special anymore. | 
| void | clearInterval(int intervalID)Cancels the interval previously started using the
  setInterval(Context, Scriptable, Scriptable, Object[], Function)method. | 
| void | clearTimeout(int timeoutId)Cancels a time-out previously set with the
  setTimeout(Context, Scriptable, Scriptable, Object[], Function)method. | 
| void | close_js()Closes this window. | 
| void | close() | 
| boolean | confirm(String message)The JavaScript function  confirm. | 
| boolean | dispatchEvent(Event event)Dispatches an event into the event system (standards-conformant browsers only). | 
| void | dump(String message)Logs messages to the browser's standard output (stdout). | 
| boolean | find(String search,
    boolean caseSensitive,
    boolean backwards,
    boolean wrapAround,
    boolean wholeWord,
    boolean searchInFrames,
    boolean showDialog)Stub only at the moment. | 
| void | focus()Sets the focus to this element. | 
| Object | get(int index,
   org.htmlunit.corejs.javascript.Scriptable start) | 
| BrowserVersion | getBrowserVersion()Gets the browser version currently used. | 
| Object | getClientInformation()Returns the JavaScript property  clientInformation. | 
| ComputedCSSStyleDeclaration | getComputedStyle(Object element,
                String pseudoElement)Returns computed style of the element. | 
| Object | getControllers()Gets the  controllers. | 
| Crypto | getCrypto()Returns the  cryptoproperty. | 
| Event | getCurrentEvent()Returns the current event (used internally regardless of the emulation mode). | 
| int | getDevicePixelRatio()Returns the  devicePixelRatioproperty. | 
| DocumentProxy | getDocument_js()Returns the JavaScript property  document. | 
| Document | getDocument()Returns the window's current document. | 
| Object | getEvent()Returns the current event. | 
| External | getExternal()Returns the  externalproperty. | 
| HtmlUnitScriptable | getFrameElement()Returns the (i)frame in which the window is contained. | 
| Object | getFrames_js()Returns the value of the  framesproperty. | 
| History | getHistory()Returns the  historyproperty. | 
| int | getInnerHeight()Returns the  innerHeight. | 
| int | getInnerWidth()Returns the  innerWidth. | 
| Object | getLength()Returns the number of frames contained by this window. | 
| Storage | getLocalStorage()Returns the  localStorageproperty. | 
| Location | getLocation()Returns the  locationproperty. | 
| int | getMozInnerScreenX()Returns the value of  mozInnerScreenXproperty. | 
| int | getMozInnerScreenXffesr_js()Returns the value of  mozInnerScreenXproperty. | 
| int | getMozInnerScreenY()Returns the value of  mozInnerScreenYproperty. | 
| String | getName()Returns the value of the window's  nameproperty. | 
| Navigator | getNavigator()Returns the JavaScript property  navigator. | 
| Netscape | getNetscape() | 
| org.htmlunit.corejs.javascript.Function | getOnabort()Returns the  onabortevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnafterprint()Returns the  onafterprintevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnanimationend()Returns the  onanimationendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnanimationiteration()Returns the  onanimationiterationevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnanimationstart()Returns the  onanimationstartevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnauxclick()Returns the  onauxclickevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnbeforeprint()Returns the  onbeforeprintevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnbeforeunload()Returns the value of the window's  onbeforeunloadproperty. | 
| org.htmlunit.corejs.javascript.Function | getOnblur()Returns the  onblurproperty (not necessary a function if something else has been set). | 
| org.htmlunit.corejs.javascript.Function | getOncancel()Returns the  oncancelevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOncanplay()Returns the  oncanplayevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOncanplaythrough()Returns the  oncanplaythroughevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnchange()Getter for the  onchangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnclick()Returns the  onclickproperty (not necessary a function if something else has been set). | 
| org.htmlunit.corejs.javascript.Function | getOnclose()Returns the  oncloseevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOncontextmenu()Returns the  oncontextmenuevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOncuechange()Returns the  oncuechangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndblclick()Returns the  ondblclickproperty (not necessary a function if something else has been set). | 
| org.htmlunit.corejs.javascript.Function | getOndevicemotion()Returns the  ondevicemotionevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndeviceorientation()Returns the  ondeviceorientationevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndeviceorientationabsolute()Returns the  ondeviceorientationabsoluteevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndrag()Returns the  ondragevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndragend()Returns the  ondragendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndragenter()Returns the  ondragenterevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndragleave()Returns the  ondragleaveevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndragover()Returns the  ondragoverevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndragstart()Returns the  ondragstartevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndrop()Returns the  ondropevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOndurationchange()Returns the  ondurationchangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnemptied()Returns the  onemptiedevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnended()Returns the  onendedevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnerror()Returns the value of the window's  onerrorproperty. | 
| org.htmlunit.corejs.javascript.Function | getOnfocus()Returns the  onfocusevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOngotpointercapture()Returns the  ongotpointercaptureevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnhashchange()Returns the  onhashchangeproperty (not necessary a function if something else has been set). | 
| org.htmlunit.corejs.javascript.Function | getOninput()Returns the  oninputevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOninvalid()Returns the  oninvalidevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnkeydown()Returns the  onkeydownevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnkeypress()Returns the  onkeypressevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnkeyup()Returns the  onkeyupevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnlanguagechange()Returns the  onlanguagechangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnload()Returns the  onloadproperty. | 
| org.htmlunit.corejs.javascript.Function | getOnloadeddata()Returns the  onloadeddataevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnloadedmetadata()Returns the  onloadedmetadataevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnloadstart()Returns the  onloadstartevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnlostpointercapture()Returns the  onlostpointercaptureevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmessage()Returns the value of the window's  onmessageproperty. | 
| org.htmlunit.corejs.javascript.Function | getOnmousedown()Returns the  onmousedownevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmouseenter()Returns the  onmouseenterevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmouseleave()Returns the  onmouseleaveevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmousemove()Returns the  onmousemoveevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmouseout()Returns the  onmouseoutevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmouseover()Returns the  onmouseoverevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmouseup()Returns the  onmouseupevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmousewheel()Returns the  onmousewheelevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmozfullscreenchange()Returns the  onmozfullscreenchangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnmozfullscreenerror()Returns the  onmozfullscreenerrorevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnoffline()Returns the  onofflineevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnonline()Returns the  ononlineevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpagehide()Returns the  onpagehideevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpageshow()Returns the  onpageshowevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpause()Returns the  onpauseevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnplay()Returns the  onplayevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnplaying()Returns the  onplayingevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointercancel()Returns the  onpointercancelevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerdown()Returns the  onpointerdownevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerenter()Returns the  onpointerenterevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerleave()Returns the  onpointerleaveevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointermove()Returns the  onpointermoveevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerout()Returns the  onpointeroutevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerover()Returns the  onpointeroverevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpointerup()Returns the  onpointerupevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnpopstate()Returns the  onpopstateevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnprogress()Returns the  onprogressevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnratechange()Returns the  onratechangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnrejectionhandled()Returns the  onrejectionhandledevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnreset()Returns the  onresetevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnresize()Returns the  onresizeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnscroll()Returns the  onscrollevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnsearch()Returns the  onsearchevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnseeked()Returns the  onseekedevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnseeking()Returns the  onseekingevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnselect()Returns the  onselectevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnstalled()Returns the  onstalledevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnstorage()Returns the  onstorageevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnsubmit()Getter for the  onsubmitevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnsuspend()Returns the  onsuspendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOntimeupdate()Returns the  ontimeupdateevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOntoggle()Returns the  ontoggleevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOntransitionend()Returns the  ontransitionendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnunhandledrejection()Returns the  onunhandledrejectionevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnunload()Returns the  onunloadevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnvolumechange()Returns the  onvolumechangeevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwaiting()Returns the  onwaitingevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwebkitanimationend()Returns the  onwebkitanimationendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwebkitanimationiteration()Returns the  onwebkitanimationiterationevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwebkitanimationstart()Returns the  onwebkitanimationstartevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwebkittransitionend()Returns the  onwebkittransitionendevent handler. | 
| org.htmlunit.corejs.javascript.Function | getOnwheel()Returns the  onwheelevent handler. | 
| Object | getOpener()Returns the value of the  openerproperty. | 
| int | getOuterHeight()Returns the  outerHeight. | 
| int | getOuterWidth()Returns the  outerWidth. | 
| int | getPageXOffset()Returns the value of  pageXOffsetproperty. | 
| int | getPageYOffset()Returns the value of  pageYOffsetproperty. | 
| Object | getParent()Returns the value of the  parentproperty. | 
| 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. | 
| static int | getPort(URL url)Returns the port of the specified URL. | 
| org.htmlunit.corejs.javascript.Scriptable | getPrototype(Class<? extends HtmlUnitScriptable> jsClass)Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope. | 
| static WindowProxy | getProxy(WebWindow w)Returns the proxy for the specified window. | 
| Screen | getScreen()Returns the  screenproperty. | 
| int | getScrollX()Returns the value of  scrollXproperty. | 
| int | getScrollY()Returns the value of  scrollYproperty. | 
| Selection | getSelection()Returns the current selection. | 
| Selection | getSelectionImpl()Returns the current selection. | 
| Object | getSelf()Returns the  selfproperty. | 
| Storage | getSessionStorage()Returns the  sessionStorageproperty. | 
| SpeechSynthesis | getSpeechSynthesis()Returns the  speechSynthesisproperty. | 
| String | getStatus()Returns the text from the status line. | 
| Storage | getStorage(StorageHolder.Type storageType)Gets the storage of the specified type. | 
| StyleMedia | getStyleMedia()Returns the  styleMediaproperty. | 
| Object | getTop()Returns the value of the  topproperty. | 
| WebWindow | getWebWindow()Returns the WebWindow associated with this Window. | 
| Window | getWindow_js()Returns the window property. | 
| protected Object | getWithPreemption(String name)Called by  HtmlUnitScriptable.get(String, Scriptable)to allow retrieval of the property before the prototype
 chain is searched. | 
| void | initialize()Initializes the object. | 
| void | initialize(Page enclosedPage)Initialize the object. | 
| void | initialize(WebWindow webWindow,
          Page pageToEnclose)Initializes this window. | 
| boolean | isClosed()Indicates if this window is closed. | 
| boolean | isConst(String name)
 Used to allow re-declaration of constants (eg: "var undefined;"). | 
| boolean | isIsSecureContext() | 
| boolean | isOffscreenBuffering()Returns the  offscreenBufferingproperty. | 
| static org.htmlunit.corejs.javascript.Scriptable | jsConstructor(org.htmlunit.corejs.javascript.Context cx,
             org.htmlunit.corejs.javascript.Scriptable scope,
             Object[] args,
             org.htmlunit.corejs.javascript.Function ctorObj,
             boolean inNewExpr)Creates an instance. | 
| Object | jsGetFrames()Gets the  framesproperty. | 
| Object | jsGetLength()Gets the  lengthproperty. | 
| Object | jsGetParent()Gets the  parentproperty. | 
| Object | jsGetSelf()Gets the  selfproperty. | 
| void | jsSetFrames(org.htmlunit.corejs.javascript.Scriptable framesShadow)Sets the  framesproperty. | 
| void | jsSetLength(org.htmlunit.corejs.javascript.Scriptable lengthShadow)Sets the  lengthproperty. | 
| void | jsSetParent(org.htmlunit.corejs.javascript.Scriptable parentShadow)Sets the  parentproperty. | 
| void | jsSetSelf(org.htmlunit.corejs.javascript.Scriptable selfShadow)Sets the  selfproperty. | 
| MediaQueryList | matchMedia(String mediaQueryString)Returns a new MediaQueryList object representing the parsed results of the specified media query string. | 
| void | moveBy(int x,
      int y)Does nothing. | 
| void | moveTo(int x,
      int y)Does nothing. | 
| WindowProxy | open(Object url,
    Object name,
    Object features,
    Object replace)Opens a new window. | 
| static void | postMessage(org.htmlunit.corejs.javascript.Context context,
           org.htmlunit.corejs.javascript.Scriptable scope,
           org.htmlunit.corejs.javascript.Scriptable thisObj,
           Object[] args,
           org.htmlunit.corejs.javascript.Function funObj)Posts a message. | 
| void | print()Prints the current page. | 
| String | prompt(String message,
      Object defaultValue)The JavaScript function  prompt. | 
| void | put(String name,
   org.htmlunit.corejs.javascript.Scriptable start,
   Object value) | 
| void | releaseEvents(String type)Does nothing special anymore. | 
| int | requestAnimationFrame(Object callback)Add callback to the list of animationFrames. | 
| void | resizeBy(int width,
        int height)Does nothing. | 
| void | resizeTo(int width,
        int height)Does nothing. | 
| void | scroll(org.htmlunit.corejs.javascript.Scriptable x,
      org.htmlunit.corejs.javascript.Scriptable y)Scrolls to the specified location on the page. | 
| void | scrollBy(org.htmlunit.corejs.javascript.Scriptable x,
        org.htmlunit.corejs.javascript.Scriptable y)Scrolls the window content the specified distance. | 
| void | scrollByLines(int lines)Scrolls the window content down by the specified number of lines. | 
| void | scrollByPages(int pages)Scrolls the window content down by the specified number of pages. | 
| void | scrollTo(org.htmlunit.corejs.javascript.Scriptable x,
        org.htmlunit.corejs.javascript.Scriptable y)Scrolls to the specified location on the page. | 
| void | setClientInformation(Object clientInformation) | 
| void | setControllers(Object value)Sets the  controllers. | 
| void | setCurrentEvent(Event event)Sets the current event. | 
| void | setInnerHeight(int height)Sets the  innerHeight. | 
| void | setInnerWidth(int width)Sets the  innerWidth. | 
| static Object | setInterval(org.htmlunit.corejs.javascript.Context context,
           org.htmlunit.corejs.javascript.Scriptable scope,
           org.htmlunit.corejs.javascript.Scriptable thisObj,
           Object[] args,
           org.htmlunit.corejs.javascript.Function function)Sets a chunk of JavaScript to be invoked each time a specified number of milliseconds has elapsed. | 
| void | setLocation(String newLocation)Sets the  locationproperty. | 
| void | setName(String name)Sets the value of the window's  nameproperty. | 
| void | setOnabort(Object onabort)Sets the  onabortevent handler. | 
| void | setOnafterprint(Object onafterprint)Sets the  onafterprintevent handler. | 
| void | setOnanimationend(Object onanimationend)Sets the  onanimationendevent handler. | 
| void | setOnanimationiteration(Object onanimationiteration)Sets the  onanimationiterationevent handler. | 
| void | setOnanimationstart(Object onanimationstart)Sets the  onanimationstartevent handler. | 
| void | setOnauxclick(Object onauxclick)Sets the  onauxclickevent handler. | 
| void | setOnbeforeprint(Object onbeforeprint)Sets the  onbeforeprintevent handler. | 
| void | setOnbeforeunload(Object onbeforeunload)Sets the value of the window's  onbeforeunloadproperty. | 
| void | setOnblur(Object onblur)Sets the value of the  onblurevent handler. | 
| void | setOncancel(Object oncancel)Sets the  oncancelevent handler. | 
| void | setOncanplay(Object oncanplay)Sets the  oncanplayevent handler. | 
| void | setOncanplaythrough(Object oncanplaythrough)Sets the  oncanplaythroughevent handler. | 
| void | setOnchange(Object onchange)Setter for the  onchangeevent handler. | 
| void | setOnclick(Object onclick)Sets the value of the  onclickevent handler. | 
| void | setOnclose(Object onclose)Sets the  oncloseevent handler. | 
| void | setOncontextmenu(Object oncontextmenu)Sets the  oncontextmenuevent handler. | 
| void | setOncuechange(Object oncuechange)Sets the  oncuechangeevent handler. | 
| void | setOndblclick(Object ondblclick)Sets the value of the  ondblclickevent handler. | 
| void | setOndevicemotion(Object ondevicemotion)Sets the  ondevicemotionevent handler. | 
| void | setOndeviceorientation(Object ondeviceorientation)Sets the  ondeviceorientationevent handler. | 
| void | setOndeviceorientationabsolute(Object ondeviceorientationabsolute)Sets the  ondeviceorientationabsoluteevent handler. | 
| void | setOndrag(Object ondrag)Sets the  ondragevent handler. | 
| void | setOndragend(Object ondragend)Sets the  ondragendevent handler. | 
| void | setOndragenter(Object ondragenter)Sets the  ondragenterevent handler. | 
| void | setOndragleave(Object ondragleave)Sets the  ondragleaveevent handler. | 
| void | setOndragover(Object ondragover)Sets the  ondragoverevent handler. | 
| void | setOndragstart(Object ondragstart)Sets the  ondragstartevent handler. | 
| void | setOndrop(Object ondrop)Sets the  ondropevent handler. | 
| void | setOndurationchange(Object ondurationchange)Sets the  ondurationchangeevent handler. | 
| void | setOnemptied(Object onemptied)Sets the  onemptiedevent handler. | 
| void | setOnended(Object onended)Sets the  onendedevent handler. | 
| void | setOnerror(Object onerror)Sets the value of the window's  onerrorproperty. | 
| void | setOnfocus(Object onfocus)Sets the  onfocusevent handler. | 
| void | setOngotpointercapture(Object ongotpointercapture)Sets the  ongotpointercaptureevent handler. | 
| void | setOnhashchange(Object onhashchange)Sets the value of the  onhashchangeevent handler. | 
| void | setOninput(Object oninput)Sets the  oninputevent handler. | 
| void | setOninvalid(Object oninvalid)Sets the  oninvalidevent handler. | 
| void | setOnkeydown(Object onkeydown)Sets the  onkeydownevent handler. | 
| void | setOnkeypress(Object onkeypress)Sets the  onkeypressevent handler. | 
| void | setOnkeyup(Object onkeyup)Sets the  onkeyupevent handler. | 
| void | setOnlanguagechange(Object onlanguagechange)Sets the  onlanguagechangeevent handler. | 
| void | setOnload(Object onload)Sets the value of the  onloadevent handler. | 
| void | setOnloadeddata(Object onloadeddata)Sets the  onloadeddataevent handler. | 
| void | setOnloadedmetadata(Object onloadedmetadata)Sets the  onloadedmetadataevent handler. | 
| void | setOnloadstart(Object onloadstart)Sets the  onloadstartevent handler. | 
| void | setOnlostpointercapture(Object onlostpointercapture)Sets the  onlostpointercaptureevent handler. | 
| void | setOnmessage(Object onmessage)Sets the value of the window's  onmessageproperty. | 
| void | setOnmousedown(Object onmousedown)Sets the  onmousedownevent handler. | 
| void | setOnmouseenter(Object onmouseenter)Sets the  onmouseenterevent handler. | 
| void | setOnmouseleave(Object onmouseleave)Sets the  onmouseleaveevent handler. | 
| void | setOnmousemove(Object onmousemove)Sets the  onmousemoveevent handler. | 
| void | setOnmouseout(Object onmouseout)Sets the  onmouseoutevent handler. | 
| void | setOnmouseover(Object onmouseover)Sets the  onmouseoverevent handler. | 
| void | setOnmouseup(Object onmouseup)Sets the  onmouseupevent handler. | 
| void | setOnmousewheel(Object onmousewheel)Sets the  onmousewheelevent handler. | 
| void | setOnmozfullscreenchange(Object onmozfullscreenchange)Sets the  onmozfullscreenchangeevent handler. | 
| void | setOnmozfullscreenerror(Object onmozfullscreenerror)Sets the  onmozfullscreenerrorevent handler. | 
| void | setOnoffline(Object onoffline)Sets the  onofflineevent handler. | 
| void | setOnonline(Object ononline)Sets the  ononlineevent handler. | 
| void | setOnpagehide(Object onpagehide)Sets the  onpagehideevent handler. | 
| void | setOnpageshow(Object onpageshow)Sets the  onpageshowevent handler. | 
| void | setOnpause(Object onpause)Sets the  onpauseevent handler. | 
| void | setOnplay(Object onplay)Sets the  onplayevent handler. | 
| void | setOnplaying(Object onplaying)Sets the  onplayingevent handler. | 
| void | setOnpointercancel(Object onpointercancel)Sets the  onpointercancelevent handler. | 
| void | setOnpointerdown(Object onpointerdown)Sets the  onpointerdownevent handler. | 
| void | setOnpointerenter(Object onpointerenter)Sets the  onpointerenterevent handler. | 
| void | setOnpointerleave(Object onpointerleave)Sets the  onpointerleaveevent handler. | 
| void | setOnpointermove(Object onpointermove)Sets the  onpointermoveevent handler. | 
| void | setOnpointerout(Object onpointerout)Sets the  onpointeroutevent handler. | 
| void | setOnpointerover(Object onpointerover)Sets the  onpointeroverevent handler. | 
| void | setOnpointerup(Object onpointerup)Sets the  onpointerupevent handler. | 
| void | setOnpopstate(Object onpopstate)Sets the  onpopstateevent handler. | 
| void | setOnprogress(Object onprogress)Sets the  onprogressevent handler. | 
| void | setOnratechange(Object onratechange)Sets the  onratechangeevent handler. | 
| void | setOnrejectionhandled(Object onrejectionhandled)Sets the  onrejectionhandledevent handler. | 
| void | setOnreset(Object onreset)Sets the  onresetevent handler. | 
| void | setOnresize(Object onresize)Sets the  onresizeevent handler. | 
| void | setOnscroll(Object onscroll)Sets the  onscrollevent handler. | 
| void | setOnsearch(Object onsearch)Sets the  onsearchevent handler. | 
| void | setOnseeked(Object onseeked)Sets the  onseekedevent handler. | 
| void | setOnseeking(Object onseeking)Sets the  onseekingevent handler. | 
| void | setOnselect(Object onselect)Sets the  onselectevent handler. | 
| void | setOnstalled(Object onstalled)Sets the  onstalledevent handler. | 
| void | setOnstorage(Object onstorage)Sets the  onstorageevent handler. | 
| void | setOnsubmit(Object onsubmit)Setter for the  onsubmitevent handler. | 
| void | setOnsuspend(Object onsuspend)Sets the  onsuspendevent handler. | 
| void | setOntimeupdate(Object ontimeupdate)Sets the  ontimeupdateevent handler. | 
| void | setOntoggle(Object ontoggle)Sets the  ontoggleevent handler. | 
| void | setOntransitionend(Object ontransitionend)Sets the  ontransitionendevent handler. | 
| void | setOnunhandledrejection(Object onunhandledrejection)Sets the  onunhandledrejectionevent handler. | 
| void | setOnunload(Object onunload)Sets the  onunloadevent handler. | 
| void | setOnvolumechange(Object onvolumechange)Sets the  onvolumechangeevent handler. | 
| void | setOnwaiting(Object onwaiting)Sets the  onwaitingevent handler. | 
| void | setOnwebkitanimationend(Object onwebkitanimationend)Sets the  onwebkitanimationendevent handler. | 
| void | setOnwebkitanimationiteration(Object onwebkitanimationiteration)Sets the  onwebkitanimationiterationevent handler. | 
| void | setOnwebkitanimationstart(Object onwebkitanimationstart)Sets the  onwebkitanimationstartevent handler. | 
| void | setOnwebkittransitionend(Object onwebkittransitionend)Sets the  onwebkittransitionendevent handler. | 
| void | setOnwheel(Object onwheel)Sets the  onwheelevent handler. | 
| void | setOpener(Object newValue)Sets the  openerproperty. | 
| void | setOuterHeight(int height)Sets the  outerHeight. | 
| void | setOuterWidth(int width)Sets the  outerWidth. | 
| void | setParentScope(org.htmlunit.corejs.javascript.Scriptable parent)Does nothing. | 
| 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. | 
| void | setPrototypes(Map<Class<? extends org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable> map)Sets the prototypes for HtmlUnit host classes. | 
| void | setStatus(String message)Sets the text from the status line. | 
| static Object | setTimeout(org.htmlunit.corejs.javascript.Context context,
          org.htmlunit.corejs.javascript.Scriptable scope,
          org.htmlunit.corejs.javascript.Scriptable thisObj,
          Object[] args,
          org.htmlunit.corejs.javascript.Function function)Sets a chunk of JavaScript to be invoked at some specified time later. | 
| void | stop()Should implement the stop() function on the window object. | 
| void | triggerOnError(ScriptException e)Triggers the  onerrorhandler, if one has been set. | 
addEventListener, clearEventListenersContainer, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, jsConstructor, removeEventListener, setEventHandlerclone, equivalentValues, get, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, has, hasInstance, initParentScope, makeScriptableFor, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic static final int TEMPORARY
public static final int PERSISTENT
public static org.htmlunit.corejs.javascript.Scriptable jsConstructor(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object[] args, org.htmlunit.corejs.javascript.Function ctorObj, boolean inNewExpr)
cx - the current contextscope - the scopeargs - the argumentsctorObj - the function objectinNewExpr - Is new or notpublic org.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends HtmlUnitScriptable> jsClass)
getPrototype in class HtmlUnitScriptablejsClass - the class whose prototype is to be returnedpublic void setPrototypes(Map<Class<? extends org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable> map)
map - a Map of (Class, Scriptable)public void alert(Object message)
alert().message - the messagepublic String btoa(String stringToEncode)
btoa in interface WindowOrWorkerGlobalScopestringToEncode - string to encodepublic String atob(String encodedData)
atob in interface WindowOrWorkerGlobalScopeencodedData - the encoded stringpublic boolean confirm(String message)
confirm.message - the messagepublic String prompt(String message, Object defaultValue)
prompt.message - the messagedefaultValue - the default value displayed in the text input fieldnull if the user pressed cancelpublic DocumentProxy getDocument_js()
document.public Document getDocument()
public Object getEvent()
null if no event is currently availablepublic Event getCurrentEvent()
null if no event is currently availablepublic void setCurrentEvent(Event event)
event - the current eventpublic WindowProxy open(Object url, Object name, Object features, Object replace)
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 windowname - the namefeatures - the featuresreplace - whether to replace in the history list or nonull if popup windows have been disabledWebClientOptions.isPopupBlockerEnabled(), 
MSDN documentationpublic static Object setTimeout(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
context - the JavaScript contextscope - the scopethisObj - the scriptableargs - the arguments passed into the methodfunction - the functionpublic static Object setInterval(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
context - the JavaScript contextscope - the scopethisObj - the scriptableargs - the arguments passed into the methodfunction - the functionpublic void clearTimeout(int timeoutId)
setTimeout(Context, Scriptable, Scriptable, Object[], Function) method.timeoutId - identifier for the timeout to clear
        as returned by setTimeout(Context, Scriptable, Scriptable, Object[], Function)public void clearInterval(int intervalID)
setInterval(Context, Scriptable, Scriptable, Object[], Function) method.
 Current implementation does nothing.intervalID - specifies the interval to cancel as returned by the
        setInterval(Context, Scriptable, Scriptable, Object[], Function) methodpublic Navigator getNavigator()
navigator.public Object getClientInformation()
clientInformation.public void setClientInformation(Object clientInformation)
clientInformation - the new valuepublic Window getWindow_js()
self.this)public Storage getLocalStorage()
localStorage property.localStorage propertypublic Storage getSessionStorage()
sessionStorage property.sessionStorage propertypublic Storage getStorage(StorageHolder.Type storageType)
storageType - the typepublic Location getLocation()
location property.location propertypublic void setLocation(String newLocation) throws IOException
location property. This will cause a reload of the window.newLocation - the URL of the new contentIOException - when location loading failspublic void dump(String message)
HtmlUnit always uses the WebConsole.
message - the message to logpublic int animateAnimationsFrames()
requestAnimationFrame(Object) once.public int requestAnimationFrame(Object callback)
callback - the function to call when it's time to update the animationpublic void cancelAnimationFrame(Object requestId)
requestId - the ID value returned by the call to window.requestAnimationFrame()public Screen getScreen()
screen property.screen propertypublic History getHistory()
history property.history propertypublic External getExternal()
external property.external propertypublic void initialize(WebWindow webWindow, Page pageToEnclose)
webWindow - the web window corresponding to this windowpageToEnclose - the page that will become the enclosing pagepublic void initialize(Page enclosedPage)
enclosedPage - the page containing the JavaScriptpublic void initialize()
public Object getTop()
top property.toppublic Object getOpener()
opener property.opener, or null for a top level windowpublic void setOpener(Object newValue)
opener property.newValue - the new valuepublic HtmlUnitScriptable getFrameElement()
null for a top level windowpublic Object getLength()
public Object jsGetLength()
length property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)public void jsSetLength(org.htmlunit.corejs.javascript.Scriptable lengthShadow)
length property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)lengthShadow - the value to overwrite the defined property valuepublic Object getSelf()
self property.public Object jsGetSelf()
self property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)public void jsSetSelf(org.htmlunit.corejs.javascript.Scriptable selfShadow)
self property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)selfShadow - the value to overwrite the defined property valuepublic Object getParent()
parent property.parent propertypublic Object jsGetParent()
parent property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)public void jsSetParent(org.htmlunit.corejs.javascript.Scriptable parentShadow)
parent property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)parentShadow - the value to overwrite the defined property valuepublic Object getFrames_js()
frames property.frames propertypublic Object jsGetFrames()
frames property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)public void jsSetFrames(org.htmlunit.corejs.javascript.Scriptable framesShadow)
frames property. Setting this shadows the
 defined value (see https://webidl.spec.whatwg.org/#Replaceable)framesShadow - the value to overwrite the defined property valuepublic WebWindow getWebWindow()
public void focus()
public void blur()
public void close_js()
public boolean isClosed()
true if this window is closedpublic void moveTo(int x,
                   int y)
x - the horizontal positiony - the vertical positionpublic void moveBy(int x,
                   int y)
x - the horizontal positiony - the vertical positionpublic void resizeBy(int width,
                     int height)
width - the width offsetheight - the height offsetpublic void resizeTo(int width,
                     int height)
width - the width of the Window in pixel after resizeheight - the height of the Window in pixel after resizepublic void scroll(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
x - the horizontal position to scroll toy - the vertical position to scroll topublic void scrollBy(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
x - the horizontal distance to scroll byy - the vertical distance to scroll bypublic void scrollByLines(int lines)
lines - the number of lines to scroll downpublic void scrollByPages(int pages)
pages - the number of pages to scroll downpublic void scrollTo(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
x - the horizontal position to scroll toy - the vertical position to scroll topublic org.htmlunit.corejs.javascript.Function getOnload()
onload property. Note that this is not necessarily a function if something else has been set.onload propertypublic void setOnload(Object onload)
onload event handler.onload - the new handlerpublic void setOnblur(Object onblur)
onblur event handler.onblur - the new handlerpublic org.htmlunit.corejs.javascript.Function getOnblur()
onblur property (not necessary a function if something else has been set).onblur propertypublic org.htmlunit.corejs.javascript.Function getOnclick()
onclick property (not necessary a function if something else has been set).onclick propertypublic void setOnclick(Object onclick)
onclick event handler.onclick - the new handlerpublic org.htmlunit.corejs.javascript.Function getOndblclick()
ondblclick property (not necessary a function if something else has been set).ondblclick propertypublic void setOndblclick(Object ondblclick)
ondblclick event handler.ondblclick - the new handlerpublic org.htmlunit.corejs.javascript.Function getOnhashchange()
onhashchange property (not necessary a function if something else has been set).onhashchange propertypublic void setOnhashchange(Object onhashchange)
onhashchange event handler.onhashchange - the new handlerpublic String getName()
name property.name propertypublic void setName(String name)
name property.name - the value of the window's name propertypublic org.htmlunit.corejs.javascript.Function getOnbeforeunload()
onbeforeunload property.onbeforeunload propertypublic void setOnbeforeunload(Object onbeforeunload)
onbeforeunload property.onbeforeunload - the value of the window's onbeforeunload propertypublic org.htmlunit.corejs.javascript.Function getOnerror()
onerror property.onerror propertypublic void setOnerror(Object onerror)
onerror property.onerror - the value of the window's onerror propertypublic org.htmlunit.corejs.javascript.Function getOnmessage()
onmessage property.onmessage propertypublic void setOnmessage(Object onmessage)
onmessage property.onmessage - the value of the window's onmessage propertypublic void triggerOnError(ScriptException e)
onerror handler, if one has been set.e - the error that needs to be reportedprotected 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!
getWithPreemption in class HtmlUnitScriptablename - the property nameScriptable.NOT_FOUND if not foundpublic Object get(int index, org.htmlunit.corejs.javascript.Scriptable start)
get in interface org.htmlunit.corejs.javascript.Scriptableget in class org.htmlunit.corejs.javascript.ScriptableObjectpublic static WindowProxy getProxy(WebWindow w)
w - the window whose proxy is to be returnedpublic String getStatus()
public void setStatus(String message)
message - the status line textpublic int getInnerWidth()
innerWidth.innerWidthpublic void setInnerWidth(int width)
innerWidth.width - the innerWidthpublic int getOuterWidth()
outerWidth.outerWidthpublic void setOuterWidth(int width)
outerWidth.width - the outerWidthpublic int getInnerHeight()
innerHeight.innerHeightpublic void setInnerHeight(int height)
innerHeight.height - the innerHeightpublic int getOuterHeight()
outerHeight.outerHeightpublic void setOuterHeight(int height)
outerHeight.height - the outerHeightpublic void print()
PrintHandler
 defined for the WebClient to process the window.public void captureEvents(String type)
type - the type of events to captureDocument.captureEvents(String)public void releaseEvents(String type)
type - the type of events to captureDocument.releaseEvents(String)public ComputedCSSStyleDeclaration getComputedStyle(Object element, String pseudoElement)
element.style, but the value returned by this method is read-only.element - the elementpseudoElement - a string specifying the pseudo-element to match (may be null);
        e.g. ':before'public Selection getSelection()
public Selection getSelectionImpl()
public Object getControllers()
controllers. The result doesn't currently matter but it is important to return an
 object as some JavaScript libraries check it.public void setControllers(Object value)
controllers.value - the new valuepublic int getMozInnerScreenX()
mozInnerScreenX property.mozInnerScreenX propertypublic int getMozInnerScreenXffesr_js()
mozInnerScreenX property.mozInnerScreenX propertypublic int getMozInnerScreenY()
mozInnerScreenY property.mozInnerScreenY propertypublic void stop()
public int getPageXOffset()
pageXOffset property.pageXOffset propertypublic int getPageYOffset()
pageYOffset property.pageYOffset propertypublic int getScrollX()
scrollX property.scrollX propertypublic int getScrollY()
scrollY property.scrollY propertypublic Netscape getNetscape()
netscape propertypublic boolean isConst(String name)
isConst in interface org.htmlunit.corejs.javascript.ConstPropertiesisConst in class org.htmlunit.corejs.javascript.ScriptableObjectpublic boolean dispatchEvent(Event event)
dispatchEvent in class EventTargetevent - the event to be dispatchedfalse if at least one of the event handlers which handled the event
         called preventDefault; true otherwisepublic org.htmlunit.corejs.javascript.Function getOnchange()
onchange event handler.public void setOnchange(Object onchange)
onchange event handler.onchange - the handlerpublic org.htmlunit.corejs.javascript.Function getOnsubmit()
onsubmit event handler.public void setOnsubmit(Object onsubmit)
onsubmit event handler.onsubmit - the handlerpublic static void postMessage(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function funObj)
context - the current contextscope - the scopethisObj - this objectargs - the script(s) to importfunObj - the JS function calledpublic static int getPort(URL url)
url - the URLpublic org.htmlunit.corejs.javascript.Scriptable getPerformance()
performance propertypublic void setPerformance(org.htmlunit.corejs.javascript.Scriptable performance)
 Sets the performance property.
performance - the value to overwrite the defined property valuepublic int getDevicePixelRatio()
devicePixelRatio property.devicePixelRatio propertypublic StyleMedia getStyleMedia()
styleMedia property.styleMedia propertypublic MediaQueryList matchMedia(String mediaQueryString)
mediaQueryString - the media querypublic boolean find(String search, boolean caseSensitive, boolean backwards, boolean wrapAround, boolean wholeWord, boolean searchInFrames, boolean showDialog)
search - the text string for which to searchcaseSensitive - if true, specifies a case-sensitive searchbackwards - if true, specifies a backward searchwrapAround - if true, specifies a wrap around searchwholeWord - if true, specifies a whole word searchsearchInFrames - if true, specifies a search in framesshowDialog - if true, specifies a show Dialog.public SpeechSynthesis getSpeechSynthesis()
speechSynthesis property.speechSynthesis propertypublic boolean isOffscreenBuffering()
offscreenBuffering property.offscreenBuffering propertypublic Crypto getCrypto()
crypto property.crypto propertypublic void close()
close in interface AutoCloseablepublic void setParentScope(org.htmlunit.corejs.javascript.Scriptable parent)
setParentScope in interface org.htmlunit.corejs.javascript.ScriptablesetParentScope in class HtmlUnitScriptableparent - the new parent scopepublic org.htmlunit.corejs.javascript.Function getOnfocus()
onfocus event handler.onfocus event handlerpublic void setOnfocus(Object onfocus)
onfocus event handler.onfocus - the onfocus event handlerpublic org.htmlunit.corejs.javascript.Function getOndragend()
ondragend event handler.ondragend event handlerpublic void setOndragend(Object ondragend)
ondragend event handler.ondragend - the ondragend event handlerpublic org.htmlunit.corejs.javascript.Function getOninvalid()
oninvalid event handler.oninvalid event handlerpublic void setOninvalid(Object oninvalid)
oninvalid event handler.oninvalid - the oninvalid event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerout()
onpointerout event handler.onpointerout event handlerpublic void setOnpointerout(Object onpointerout)
onpointerout event handler.onpointerout - the onpointerout event handlerpublic org.htmlunit.corejs.javascript.Function getOnratechange()
onratechange event handler.onratechange event handlerpublic void setOnratechange(Object onratechange)
onratechange event handler.onratechange - the onratechange event handlerpublic org.htmlunit.corejs.javascript.Function getOnanimationiteration()
onanimationiteration event handler.onanimationiteration event handlerpublic void setOnanimationiteration(Object onanimationiteration)
onanimationiteration event handler.onanimationiteration - the onanimationiteration event handlerpublic org.htmlunit.corejs.javascript.Function getOncanplaythrough()
oncanplaythrough event handler.oncanplaythrough event handlerpublic void setOncanplaythrough(Object oncanplaythrough)
oncanplaythrough event handler.oncanplaythrough - the oncanplaythrough event handlerpublic org.htmlunit.corejs.javascript.Function getOncancel()
oncancel event handler.oncancel event handlerpublic void setOncancel(Object oncancel)
oncancel event handler.oncancel - the oncancel event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerenter()
onpointerenter event handler.onpointerenter event handlerpublic void setOnpointerenter(Object onpointerenter)
onpointerenter event handler.onpointerenter - the onpointerenter event handlerpublic org.htmlunit.corejs.javascript.Function getOnselect()
onselect event handler.onselect event handlerpublic void setOnselect(Object onselect)
onselect event handler.onselect - the onselect event handlerpublic org.htmlunit.corejs.javascript.Function getOnauxclick()
onauxclick event handler.onauxclick event handlerpublic void setOnauxclick(Object onauxclick)
onauxclick event handler.onauxclick - the onauxclick event handlerpublic org.htmlunit.corejs.javascript.Function getOnscroll()
onscroll event handler.onscroll event handlerpublic void setOnscroll(Object onscroll)
onscroll event handler.onscroll - the onscroll event handlerpublic org.htmlunit.corejs.javascript.Function getOnkeydown()
onkeydown event handler.onkeydown event handlerpublic void setOnkeydown(Object onkeydown)
onkeydown event handler.onkeydown - the onkeydown event handlerpublic org.htmlunit.corejs.javascript.Function getOnwebkitanimationstart()
onwebkitanimationstart event handler.onwebkitanimationstart event handlerpublic void setOnwebkitanimationstart(Object onwebkitanimationstart)
onwebkitanimationstart event handler.onwebkitanimationstart - the onwebkitanimationstart event handlerpublic org.htmlunit.corejs.javascript.Function getOnkeyup()
onkeyup event handler.onkeyup event handlerpublic void setOnkeyup(Object onkeyup)
onkeyup event handler.onkeyup - the onkeyup event handlerpublic org.htmlunit.corejs.javascript.Function getOnreset()
onreset event handler.onreset event handlerpublic void setOnreset(Object onreset)
onreset event handler.onreset - the onreset event handlerpublic org.htmlunit.corejs.javascript.Function getOnkeypress()
onkeypress event handler.onkeypress event handlerpublic void setOnkeypress(Object onkeypress)
onkeypress event handler.onkeypress - the onkeypress event handlerpublic org.htmlunit.corejs.javascript.Function getOndrag()
ondrag event handler.ondrag event handlerpublic void setOndrag(Object ondrag)
ondrag event handler.ondrag - the ondrag event handlerpublic org.htmlunit.corejs.javascript.Function getOnseeked()
onseeked event handler.onseeked event handlerpublic void setOnseeked(Object onseeked)
onseeked event handler.onseeked - the onseeked event handlerpublic org.htmlunit.corejs.javascript.Function getOnoffline()
onoffline event handler.onoffline event handlerpublic void setOnoffline(Object onoffline)
onoffline event handler.onoffline - the onoffline event handlerpublic org.htmlunit.corejs.javascript.Function getOndeviceorientation()
ondeviceorientation event handler.ondeviceorientation event handlerpublic void setOndeviceorientation(Object ondeviceorientation)
ondeviceorientation event handler.ondeviceorientation - the ondeviceorientation event handlerpublic org.htmlunit.corejs.javascript.Function getOntoggle()
ontoggle event handler.ontoggle event handlerpublic void setOntoggle(Object ontoggle)
ontoggle event handler.ontoggle - the ontoggle event handlerpublic org.htmlunit.corejs.javascript.Function getOnplay()
onplay event handler.onplay event handlerpublic void setOnplay(Object onplay)
onplay event handler.onplay - the onplay event handlerpublic org.htmlunit.corejs.javascript.Function getOncontextmenu()
oncontextmenu event handler.oncontextmenu event handlerpublic void setOncontextmenu(Object oncontextmenu)
oncontextmenu event handler.oncontextmenu - the oncontextmenu event handlerpublic org.htmlunit.corejs.javascript.Function getOnmousemove()
onmousemove event handler.onmousemove event handlerpublic void setOnmousemove(Object onmousemove)
onmousemove event handler.onmousemove - the onmousemove event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointermove()
onpointermove event handler.onpointermove event handlerpublic void setOnpointermove(Object onpointermove)
onpointermove event handler.onpointermove - the onpointermove event handlerpublic org.htmlunit.corejs.javascript.Function getOnmouseover()
onmouseover event handler.onmouseover event handlerpublic void setOnmouseover(Object onmouseover)
onmouseover event handler.onmouseover - the onmouseover event handlerpublic org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
onlostpointercapture event handler.onlostpointercapture event handlerpublic void setOnlostpointercapture(Object onlostpointercapture)
onlostpointercapture event handler.onlostpointercapture - the onlostpointercapture event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerover()
onpointerover event handler.onpointerover event handlerpublic void setOnpointerover(Object onpointerover)
onpointerover event handler.onpointerover - the onpointerover event handlerpublic org.htmlunit.corejs.javascript.Function getOnclose()
onclose event handler.onclose event handlerpublic void setOnclose(Object onclose)
onclose event handler.onclose - the onclose event handlerpublic org.htmlunit.corejs.javascript.Function getOnanimationend()
onanimationend event handler.onanimationend event handlerpublic void setOnanimationend(Object onanimationend)
onanimationend event handler.onanimationend - the onanimationend event handlerpublic org.htmlunit.corejs.javascript.Function getOndragenter()
ondragenter event handler.ondragenter event handlerpublic void setOndragenter(Object ondragenter)
ondragenter event handler.ondragenter - the ondragenter event handlerpublic org.htmlunit.corejs.javascript.Function getOnafterprint()
onafterprint event handler.onafterprint event handlerpublic void setOnafterprint(Object onafterprint)
onafterprint event handler.onafterprint - the onafterprint event handlerpublic org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
onmozfullscreenerror event handler.onmozfullscreenerror event handlerpublic void setOnmozfullscreenerror(Object onmozfullscreenerror)
onmozfullscreenerror event handler.onmozfullscreenerror - the onmozfullscreenerror event handlerpublic org.htmlunit.corejs.javascript.Function getOnmouseleave()
onmouseleave event handler.onmouseleave event handlerpublic void setOnmouseleave(Object onmouseleave)
onmouseleave event handler.onmouseleave - the onmouseleave event handlerpublic org.htmlunit.corejs.javascript.Function getOnmousewheel()
onmousewheel event handler.onmousewheel event handlerpublic void setOnmousewheel(Object onmousewheel)
onmousewheel event handler.onmousewheel - the onmousewheel event handlerpublic org.htmlunit.corejs.javascript.Function getOnseeking()
onseeking event handler.onseeking event handlerpublic void setOnseeking(Object onseeking)
onseeking event handler.onseeking - the onseeking event handlerpublic org.htmlunit.corejs.javascript.Function getOncuechange()
oncuechange event handler.oncuechange event handlerpublic void setOncuechange(Object oncuechange)
oncuechange event handler.oncuechange - the oncuechange event handlerpublic org.htmlunit.corejs.javascript.Function getOnpageshow()
onpageshow event handler.onpageshow event handlerpublic void setOnpageshow(Object onpageshow)
onpageshow event handler.onpageshow - the onpageshow event handlerpublic org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
onmozfullscreenchange event handler.onmozfullscreenchange event handlerpublic void setOnmozfullscreenchange(Object onmozfullscreenchange)
onmozfullscreenchange event handler.onmozfullscreenchange - the onmozfullscreenchange event handlerpublic org.htmlunit.corejs.javascript.Function getOndurationchange()
ondurationchange event handler.ondurationchange event handlerpublic void setOndurationchange(Object ondurationchange)
ondurationchange event handler.ondurationchange - the ondurationchange event handlerpublic org.htmlunit.corejs.javascript.Function getOnplaying()
onplaying event handler.onplaying event handlerpublic void setOnplaying(Object onplaying)
onplaying event handler.onplaying - the onplaying event handlerpublic org.htmlunit.corejs.javascript.Function getOnended()
onended event handler.onended event handlerpublic void setOnended(Object onended)
onended event handler.onended - the onended event handlerpublic org.htmlunit.corejs.javascript.Function getOnloadeddata()
onloadeddata event handler.onloadeddata event handlerpublic void setOnloadeddata(Object onloadeddata)
onloadeddata event handler.onloadeddata - the onloadeddata event handlerpublic org.htmlunit.corejs.javascript.Function getOnunhandledrejection()
onunhandledrejection event handler.onunhandledrejection event handlerpublic void setOnunhandledrejection(Object onunhandledrejection)
onunhandledrejection event handler.onunhandledrejection - the onunhandledrejection event handlerpublic org.htmlunit.corejs.javascript.Function getOnmouseout()
onmouseout event handler.onmouseout event handlerpublic void setOnmouseout(Object onmouseout)
onmouseout event handler.onmouseout - the onmouseout event handlerpublic org.htmlunit.corejs.javascript.Function getOnsuspend()
onsuspend event handler.onsuspend event handlerpublic void setOnsuspend(Object onsuspend)
onsuspend event handler.onsuspend - the onsuspend event handlerpublic org.htmlunit.corejs.javascript.Function getOnwaiting()
onwaiting event handler.onwaiting event handlerpublic void setOnwaiting(Object onwaiting)
onwaiting event handler.onwaiting - the onwaiting event handlerpublic org.htmlunit.corejs.javascript.Function getOncanplay()
oncanplay event handler.oncanplay event handlerpublic void setOncanplay(Object oncanplay)
oncanplay event handler.oncanplay - the oncanplay event handlerpublic org.htmlunit.corejs.javascript.Function getOnmousedown()
onmousedown event handler.onmousedown event handlerpublic void setOnmousedown(Object onmousedown)
onmousedown event handler.onmousedown - the onmousedown event handlerpublic org.htmlunit.corejs.javascript.Function getOnlanguagechange()
onlanguagechange event handler.onlanguagechange event handlerpublic void setOnlanguagechange(Object onlanguagechange)
onlanguagechange event handler.onlanguagechange - the onlanguagechange event handlerpublic org.htmlunit.corejs.javascript.Function getOnemptied()
onemptied event handler.onemptied event handlerpublic void setOnemptied(Object onemptied)
onemptied event handler.onemptied - the onemptied event handlerpublic org.htmlunit.corejs.javascript.Function getOnrejectionhandled()
onrejectionhandled event handler.onrejectionhandled event handlerpublic void setOnrejectionhandled(Object onrejectionhandled)
onrejectionhandled event handler.onrejectionhandled - the onrejectionhandled event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointercancel()
onpointercancel event handler.onpointercancel event handlerpublic void setOnpointercancel(Object onpointercancel)
onpointercancel event handler.onpointercancel - the onpointercancel event handlerpublic org.htmlunit.corejs.javascript.Function getOnresize()
onresize event handler.onresize event handlerpublic void setOnresize(Object onresize)
onresize event handler.onresize - the onresize event handlerpublic org.htmlunit.corejs.javascript.Function getOnpause()
onpause event handler.onpause event handlerpublic void setOnpause(Object onpause)
onpause event handler.onpause - the onpause event handlerpublic org.htmlunit.corejs.javascript.Function getOnloadstart()
onloadstart event handler.onloadstart event handlerpublic void setOnloadstart(Object onloadstart)
onloadstart event handler.onloadstart - the onloadstart event handlerpublic org.htmlunit.corejs.javascript.Function getOnprogress()
onprogress event handler.onprogress event handlerpublic void setOnprogress(Object onprogress)
onprogress event handler.onprogress - the onprogress event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerup()
onpointerup event handler.onpointerup event handlerpublic void setOnpointerup(Object onpointerup)
onpointerup event handler.onpointerup - the onpointerup event handlerpublic org.htmlunit.corejs.javascript.Function getOnwheel()
onwheel event handler.onwheel event handlerpublic void setOnwheel(Object onwheel)
onwheel event handler.onwheel - the onwheel event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerleave()
onpointerleave event handler.onpointerleave event handlerpublic void setOnpointerleave(Object onpointerleave)
onpointerleave event handler.onpointerleave - the onpointerleave event handlerpublic org.htmlunit.corejs.javascript.Function getOnbeforeprint()
onbeforeprint event handler.onbeforeprint event handlerpublic void setOnbeforeprint(Object onbeforeprint)
onbeforeprint event handler.onbeforeprint - the onbeforeprint event handlerpublic org.htmlunit.corejs.javascript.Function getOnstorage()
onstorage event handler.onstorage event handlerpublic void setOnstorage(Object onstorage)
onstorage event handler.onstorage - the onstorage event handlerpublic org.htmlunit.corejs.javascript.Function getOnanimationstart()
onanimationstart event handler.onanimationstart event handlerpublic void setOnanimationstart(Object onanimationstart)
onanimationstart event handler.onanimationstart - the onanimationstart event handlerpublic org.htmlunit.corejs.javascript.Function getOntimeupdate()
ontimeupdate event handler.ontimeupdate event handlerpublic void setOntimeupdate(Object ontimeupdate)
ontimeupdate event handler.ontimeupdate - the ontimeupdate event handlerpublic org.htmlunit.corejs.javascript.Function getOnpagehide()
onpagehide event handler.onpagehide event handlerpublic void setOnpagehide(Object onpagehide)
onpagehide event handler.onpagehide - the onpagehide event handlerpublic org.htmlunit.corejs.javascript.Function getOnwebkitanimationiteration()
onwebkitanimationiteration event handler.onwebkitanimationiteration event handlerpublic void setOnwebkitanimationiteration(Object onwebkitanimationiteration)
onwebkitanimationiteration event handler.onwebkitanimationiteration - the onwebkitanimationiteration event handlerpublic org.htmlunit.corejs.javascript.Function getOnabort()
onabort event handler.onabort event handlerpublic void setOnabort(Object onabort)
onabort event handler.onabort - the onabort event handlerpublic org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
onloadedmetadata event handler.onloadedmetadata event handlerpublic void setOnloadedmetadata(Object onloadedmetadata)
onloadedmetadata event handler.onloadedmetadata - the onloadedmetadata event handlerpublic org.htmlunit.corejs.javascript.Function getOnmouseup()
onmouseup event handler.onmouseup event handlerpublic void setOnmouseup(Object onmouseup)
onmouseup event handler.onmouseup - the onmouseup event handlerpublic org.htmlunit.corejs.javascript.Function getOndragover()
ondragover event handler.ondragover event handlerpublic void setOndragover(Object ondragover)
ondragover event handler.ondragover - the ondragover event handlerpublic org.htmlunit.corejs.javascript.Function getOnonline()
ononline event handler.ononline event handlerpublic void setOnonline(Object ononline)
ononline event handler.ononline - the ononline event handlerpublic org.htmlunit.corejs.javascript.Function getOnsearch()
onsearch event handler.onsearch event handlerpublic void setOnsearch(Object onsearch)
onsearch event handler.onsearch - the onsearch event handlerpublic org.htmlunit.corejs.javascript.Function getOninput()
oninput event handler.oninput event handlerpublic void setOninput(Object oninput)
oninput event handler.oninput - the oninput event handlerpublic org.htmlunit.corejs.javascript.Function getOnwebkittransitionend()
onwebkittransitionend event handler.onwebkittransitionend event handlerpublic void setOnwebkittransitionend(Object onwebkittransitionend)
onwebkittransitionend event handler.onwebkittransitionend - the onwebkittransitionend event handlerpublic org.htmlunit.corejs.javascript.Function getOndevicemotion()
ondevicemotion event handler.ondevicemotion event handlerpublic void setOndevicemotion(Object ondevicemotion)
ondevicemotion event handler.ondevicemotion - the ondevicemotion event handlerpublic org.htmlunit.corejs.javascript.Function getOnstalled()
onstalled event handler.onstalled event handlerpublic void setOnstalled(Object onstalled)
onstalled event handler.onstalled - the onstalled event handlerpublic org.htmlunit.corejs.javascript.Function getOnmouseenter()
onmouseenter event handler.onmouseenter event handlerpublic void setOnmouseenter(Object onmouseenter)
onmouseenter event handler.onmouseenter - the onmouseenter event handlerpublic org.htmlunit.corejs.javascript.Function getOndragleave()
ondragleave event handler.ondragleave event handlerpublic void setOndragleave(Object ondragleave)
ondragleave event handler.ondragleave - the ondragleave event handlerpublic org.htmlunit.corejs.javascript.Function getOnpointerdown()
onpointerdown event handler.onpointerdown event handlerpublic void setOnpointerdown(Object onpointerdown)
onpointerdown event handler.onpointerdown - the onpointerdown event handlerpublic org.htmlunit.corejs.javascript.Function getOndrop()
ondrop event handler.ondrop event handlerpublic void setOndrop(Object ondrop)
ondrop event handler.ondrop - the ondrop event handlerpublic org.htmlunit.corejs.javascript.Function getOnunload()
onunload event handler.onunload event handlerpublic void setOnunload(Object onunload)
onunload event handler.onunload - the onunload event handlerpublic org.htmlunit.corejs.javascript.Function getOnwebkitanimationend()
onwebkitanimationend event handler.onwebkitanimationend event handlerpublic void setOnwebkitanimationend(Object onwebkitanimationend)
onwebkitanimationend event handler.onwebkitanimationend - the onwebkitanimationend event handlerpublic org.htmlunit.corejs.javascript.Function getOndragstart()
ondragstart event handler.ondragstart event handlerpublic void setOndragstart(Object ondragstart)
ondragstart event handler.ondragstart - the ondragstart event handlerpublic org.htmlunit.corejs.javascript.Function getOntransitionend()
ontransitionend event handler.ontransitionend event handlerpublic void setOntransitionend(Object ontransitionend)
ontransitionend event handler.ontransitionend - the ontransitionend event handlerpublic org.htmlunit.corejs.javascript.Function getOndeviceorientationabsolute()
ondeviceorientationabsolute event handler.ondeviceorientationabsolute event handlerpublic void setOndeviceorientationabsolute(Object ondeviceorientationabsolute)
ondeviceorientationabsolute event handler.ondeviceorientationabsolute - the ondeviceorientationabsolute event handlerpublic org.htmlunit.corejs.javascript.Function getOnvolumechange()
onvolumechange event handler.onvolumechange event handlerpublic void setOnvolumechange(Object onvolumechange)
onvolumechange event handler.onvolumechange - the onvolumechange event handlerpublic org.htmlunit.corejs.javascript.Function getOngotpointercapture()
ongotpointercapture event handler.ongotpointercapture event handlerpublic void setOngotpointercapture(Object ongotpointercapture)
ongotpointercapture event handler.ongotpointercapture - the ongotpointercapture event handlerpublic org.htmlunit.corejs.javascript.Function getOnpopstate()
onpopstate event handler.onpopstate event handlerpublic void setOnpopstate(Object onpopstate)
onpopstate event handler.onpopstate - the onpopstate event handlerpublic BrowserVersion getBrowserVersion()
getBrowserVersion in class HtmlUnitScriptablepublic void put(String name, org.htmlunit.corejs.javascript.Scriptable start, Object value)
HtmlUnitScriptableput in interface org.htmlunit.corejs.javascript.Scriptableput in class HtmlUnitScriptablepublic boolean isIsSecureContext()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.