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 |
PERSISTENT
To be documented.
|
static int |
TEMPORARY
To 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
crypto property. |
Event |
getCurrentEvent()
Returns the current event (used internally regardless of the emulation mode).
|
int |
getDevicePixelRatio()
Returns the
devicePixelRatio property. |
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
external property. |
HtmlUnitScriptable |
getFrameElement()
Returns the (i)frame in which the window is contained.
|
Object |
getFrames_js()
Returns the value of the
frames property. |
History |
getHistory()
Returns the
history property. |
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
localStorage property. |
Location |
getLocation()
Returns the
location property. |
int |
getMozInnerScreenX()
Returns the value of
mozInnerScreenX property. |
int |
getMozInnerScreenXffesr_js()
Returns the value of
mozInnerScreenX property. |
int |
getMozInnerScreenY()
Returns the value of
mozInnerScreenY property. |
String |
getName()
Returns the value of the window's
name property. |
Navigator |
getNavigator()
Returns the JavaScript property
navigator. |
Netscape |
getNetscape() |
org.htmlunit.corejs.javascript.Function |
getOnabort()
Returns the
onabort event handler. |
org.htmlunit.corejs.javascript.Function |
getOnafterprint()
Returns the
onafterprint event handler. |
org.htmlunit.corejs.javascript.Function |
getOnanimationend()
Returns the
onanimationend event handler. |
org.htmlunit.corejs.javascript.Function |
getOnanimationiteration()
Returns the
onanimationiteration event handler. |
org.htmlunit.corejs.javascript.Function |
getOnanimationstart()
Returns the
onanimationstart event handler. |
org.htmlunit.corejs.javascript.Function |
getOnauxclick()
Returns the
onauxclick event handler. |
org.htmlunit.corejs.javascript.Function |
getOnbeforeprint()
Returns the
onbeforeprint event handler. |
org.htmlunit.corejs.javascript.Function |
getOnbeforeunload()
Returns the value of the window's
onbeforeunload property. |
org.htmlunit.corejs.javascript.Function |
getOnblur()
Returns the
onblur property (not necessary a function if something else has been set). |
org.htmlunit.corejs.javascript.Function |
getOncancel()
Returns the
oncancel event handler. |
org.htmlunit.corejs.javascript.Function |
getOncanplay()
Returns the
oncanplay event handler. |
org.htmlunit.corejs.javascript.Function |
getOncanplaythrough()
Returns the
oncanplaythrough event handler. |
org.htmlunit.corejs.javascript.Function |
getOnchange()
Getter for the
onchange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnclick()
Returns the
onclick property (not necessary a function if something else has been set). |
org.htmlunit.corejs.javascript.Function |
getOnclose()
Returns the
onclose event handler. |
org.htmlunit.corejs.javascript.Function |
getOncontextmenu()
Returns the
oncontextmenu event handler. |
org.htmlunit.corejs.javascript.Function |
getOncuechange()
Returns the
oncuechange event handler. |
org.htmlunit.corejs.javascript.Function |
getOndblclick()
Returns the
ondblclick property (not necessary a function if something else has been set). |
org.htmlunit.corejs.javascript.Function |
getOndevicemotion()
Returns the
ondevicemotion event handler. |
org.htmlunit.corejs.javascript.Function |
getOndeviceorientation()
Returns the
ondeviceorientation event handler. |
org.htmlunit.corejs.javascript.Function |
getOndeviceorientationabsolute()
Returns the
ondeviceorientationabsolute event handler. |
org.htmlunit.corejs.javascript.Function |
getOndrag()
Returns the
ondrag event handler. |
org.htmlunit.corejs.javascript.Function |
getOndragend()
Returns the
ondragend event handler. |
org.htmlunit.corejs.javascript.Function |
getOndragenter()
Returns the
ondragenter event handler. |
org.htmlunit.corejs.javascript.Function |
getOndragleave()
Returns the
ondragleave event handler. |
org.htmlunit.corejs.javascript.Function |
getOndragover()
Returns the
ondragover event handler. |
org.htmlunit.corejs.javascript.Function |
getOndragstart()
Returns the
ondragstart event handler. |
org.htmlunit.corejs.javascript.Function |
getOndrop()
Returns the
ondrop event handler. |
org.htmlunit.corejs.javascript.Function |
getOndurationchange()
Returns the
ondurationchange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnemptied()
Returns the
onemptied event handler. |
org.htmlunit.corejs.javascript.Function |
getOnended()
Returns the
onended event handler. |
org.htmlunit.corejs.javascript.Function |
getOnerror()
Returns the value of the window's
onerror property. |
org.htmlunit.corejs.javascript.Function |
getOnfocus()
Returns the
onfocus event handler. |
org.htmlunit.corejs.javascript.Function |
getOngotpointercapture()
Returns the
ongotpointercapture event handler. |
org.htmlunit.corejs.javascript.Function |
getOnhashchange()
Returns the
onhashchange property (not necessary a function if something else has been set). |
org.htmlunit.corejs.javascript.Function |
getOninput()
Returns the
oninput event handler. |
org.htmlunit.corejs.javascript.Function |
getOninvalid()
Returns the
oninvalid event handler. |
org.htmlunit.corejs.javascript.Function |
getOnkeydown()
Returns the
onkeydown event handler. |
org.htmlunit.corejs.javascript.Function |
getOnkeypress()
Returns the
onkeypress event handler. |
org.htmlunit.corejs.javascript.Function |
getOnkeyup()
Returns the
onkeyup event handler. |
org.htmlunit.corejs.javascript.Function |
getOnlanguagechange()
Returns the
onlanguagechange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnload()
Returns the
onload property. |
org.htmlunit.corejs.javascript.Function |
getOnloadeddata()
Returns the
onloadeddata event handler. |
org.htmlunit.corejs.javascript.Function |
getOnloadedmetadata()
Returns the
onloadedmetadata event handler. |
org.htmlunit.corejs.javascript.Function |
getOnloadstart()
Returns the
onloadstart event handler. |
org.htmlunit.corejs.javascript.Function |
getOnlostpointercapture()
Returns the
onlostpointercapture event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmessage()
Returns the value of the window's
onmessage property. |
org.htmlunit.corejs.javascript.Function |
getOnmousedown()
Returns the
onmousedown event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmouseenter()
Returns the
onmouseenter event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmouseleave()
Returns the
onmouseleave event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmousemove()
Returns the
onmousemove event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmouseout()
Returns the
onmouseout event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmouseover()
Returns the
onmouseover event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmouseup()
Returns the
onmouseup event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmousewheel()
Returns the
onmousewheel event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmozfullscreenchange()
Returns the
onmozfullscreenchange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnmozfullscreenerror()
Returns the
onmozfullscreenerror event handler. |
org.htmlunit.corejs.javascript.Function |
getOnoffline()
Returns the
onoffline event handler. |
org.htmlunit.corejs.javascript.Function |
getOnonline()
Returns the
ononline event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpagehide()
Returns the
onpagehide event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpageshow()
Returns the
onpageshow event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpause()
Returns the
onpause event handler. |
org.htmlunit.corejs.javascript.Function |
getOnplay()
Returns the
onplay event handler. |
org.htmlunit.corejs.javascript.Function |
getOnplaying()
Returns the
onplaying event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointercancel()
Returns the
onpointercancel event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerdown()
Returns the
onpointerdown event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerenter()
Returns the
onpointerenter event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerleave()
Returns the
onpointerleave event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointermove()
Returns the
onpointermove event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerout()
Returns the
onpointerout event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerover()
Returns the
onpointerover event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpointerup()
Returns the
onpointerup event handler. |
org.htmlunit.corejs.javascript.Function |
getOnpopstate()
Returns the
onpopstate event handler. |
org.htmlunit.corejs.javascript.Function |
getOnprogress()
Returns the
onprogress event handler. |
org.htmlunit.corejs.javascript.Function |
getOnratechange()
Returns the
onratechange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnrejectionhandled()
Returns the
onrejectionhandled event handler. |
org.htmlunit.corejs.javascript.Function |
getOnreset()
Returns the
onreset event handler. |
org.htmlunit.corejs.javascript.Function |
getOnresize()
Returns the
onresize event handler. |
org.htmlunit.corejs.javascript.Function |
getOnscroll()
Returns the
onscroll event handler. |
org.htmlunit.corejs.javascript.Function |
getOnsearch()
Returns the
onsearch event handler. |
org.htmlunit.corejs.javascript.Function |
getOnseeked()
Returns the
onseeked event handler. |
org.htmlunit.corejs.javascript.Function |
getOnseeking()
Returns the
onseeking event handler. |
org.htmlunit.corejs.javascript.Function |
getOnselect()
Returns the
onselect event handler. |
org.htmlunit.corejs.javascript.Function |
getOnstalled()
Returns the
onstalled event handler. |
org.htmlunit.corejs.javascript.Function |
getOnstorage()
Returns the
onstorage event handler. |
org.htmlunit.corejs.javascript.Function |
getOnsubmit()
Getter for the
onsubmit event handler. |
org.htmlunit.corejs.javascript.Function |
getOnsuspend()
Returns the
onsuspend event handler. |
org.htmlunit.corejs.javascript.Function |
getOntimeupdate()
Returns the
ontimeupdate event handler. |
org.htmlunit.corejs.javascript.Function |
getOntoggle()
Returns the
ontoggle event handler. |
org.htmlunit.corejs.javascript.Function |
getOntransitionend()
Returns the
ontransitionend event handler. |
org.htmlunit.corejs.javascript.Function |
getOnunhandledrejection()
Returns the
onunhandledrejection event handler. |
org.htmlunit.corejs.javascript.Function |
getOnunload()
Returns the
onunload event handler. |
org.htmlunit.corejs.javascript.Function |
getOnvolumechange()
Returns the
onvolumechange event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwaiting()
Returns the
onwaiting event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwebkitanimationend()
Returns the
onwebkitanimationend event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwebkitanimationiteration()
Returns the
onwebkitanimationiteration event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwebkitanimationstart()
Returns the
onwebkitanimationstart event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwebkittransitionend()
Returns the
onwebkittransitionend event handler. |
org.htmlunit.corejs.javascript.Function |
getOnwheel()
Returns the
onwheel event handler. |
Object |
getOpener()
Returns the value of the
opener property. |
int |
getOuterHeight()
Returns the
outerHeight. |
int |
getOuterWidth()
Returns the
outerWidth. |
int |
getPageXOffset()
Returns the value of
pageXOffset property. |
int |
getPageYOffset()
Returns the value of
pageYOffset property. |
Object |
getParent()
Returns the value of the
parent property. |
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
screen property. |
int |
getScrollX()
Returns the value of
scrollX property. |
int |
getScrollY()
Returns the value of
scrollY property. |
Selection |
getSelection()
Returns the current selection.
|
Selection |
getSelectionImpl()
Returns the current selection.
|
Object |
getSelf()
Returns the
self property. |
Storage |
getSessionStorage()
Returns the
sessionStorage property. |
SpeechSynthesis |
getSpeechSynthesis()
Returns the
speechSynthesis property. |
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
styleMedia property. |
Object |
getTop()
Returns the value of the
top property. |
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
offscreenBuffering property. |
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
frames property. |
Object |
jsGetLength()
Gets the
length property. |
Object |
jsGetParent()
Gets the
parent property. |
Object |
jsGetSelf()
Gets the
self property. |
void |
jsSetFrames(org.htmlunit.corejs.javascript.Scriptable framesShadow)
Sets the
frames property. |
void |
jsSetLength(org.htmlunit.corejs.javascript.Scriptable lengthShadow)
Sets the
length property. |
void |
jsSetParent(org.htmlunit.corejs.javascript.Scriptable parentShadow)
Sets the
parent property. |
void |
jsSetSelf(org.htmlunit.corejs.javascript.Scriptable selfShadow)
Sets the
self property. |
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
location property. |
void |
setName(String name)
Sets the value of the window's
name property. |
void |
setOnabort(Object onabort)
Sets the
onabort event handler. |
void |
setOnafterprint(Object onafterprint)
Sets the
onafterprint event handler. |
void |
setOnanimationend(Object onanimationend)
Sets the
onanimationend event handler. |
void |
setOnanimationiteration(Object onanimationiteration)
Sets the
onanimationiteration event handler. |
void |
setOnanimationstart(Object onanimationstart)
Sets the
onanimationstart event handler. |
void |
setOnauxclick(Object onauxclick)
Sets the
onauxclick event handler. |
void |
setOnbeforeprint(Object onbeforeprint)
Sets the
onbeforeprint event handler. |
void |
setOnbeforeunload(Object onbeforeunload)
Sets the value of the window's
onbeforeunload property. |
void |
setOnblur(Object onblur)
Sets the value of the
onblur event handler. |
void |
setOncancel(Object oncancel)
Sets the
oncancel event handler. |
void |
setOncanplay(Object oncanplay)
Sets the
oncanplay event handler. |
void |
setOncanplaythrough(Object oncanplaythrough)
Sets the
oncanplaythrough event handler. |
void |
setOnchange(Object onchange)
Setter for the
onchange event handler. |
void |
setOnclick(Object onclick)
Sets the value of the
onclick event handler. |
void |
setOnclose(Object onclose)
Sets the
onclose event handler. |
void |
setOncontextmenu(Object oncontextmenu)
Sets the
oncontextmenu event handler. |
void |
setOncuechange(Object oncuechange)
Sets the
oncuechange event handler. |
void |
setOndblclick(Object ondblclick)
Sets the value of the
ondblclick event handler. |
void |
setOndevicemotion(Object ondevicemotion)
Sets the
ondevicemotion event handler. |
void |
setOndeviceorientation(Object ondeviceorientation)
Sets the
ondeviceorientation event handler. |
void |
setOndeviceorientationabsolute(Object ondeviceorientationabsolute)
Sets the
ondeviceorientationabsolute event handler. |
void |
setOndrag(Object ondrag)
Sets the
ondrag event handler. |
void |
setOndragend(Object ondragend)
Sets the
ondragend event handler. |
void |
setOndragenter(Object ondragenter)
Sets the
ondragenter event handler. |
void |
setOndragleave(Object ondragleave)
Sets the
ondragleave event handler. |
void |
setOndragover(Object ondragover)
Sets the
ondragover event handler. |
void |
setOndragstart(Object ondragstart)
Sets the
ondragstart event handler. |
void |
setOndrop(Object ondrop)
Sets the
ondrop event handler. |
void |
setOndurationchange(Object ondurationchange)
Sets the
ondurationchange event handler. |
void |
setOnemptied(Object onemptied)
Sets the
onemptied event handler. |
void |
setOnended(Object onended)
Sets the
onended event handler. |
void |
setOnerror(Object onerror)
Sets the value of the window's
onerror property. |
void |
setOnfocus(Object onfocus)
Sets the
onfocus event handler. |
void |
setOngotpointercapture(Object ongotpointercapture)
Sets the
ongotpointercapture event handler. |
void |
setOnhashchange(Object onhashchange)
Sets the value of the
onhashchange event handler. |
void |
setOninput(Object oninput)
Sets the
oninput event handler. |
void |
setOninvalid(Object oninvalid)
Sets the
oninvalid event handler. |
void |
setOnkeydown(Object onkeydown)
Sets the
onkeydown event handler. |
void |
setOnkeypress(Object onkeypress)
Sets the
onkeypress event handler. |
void |
setOnkeyup(Object onkeyup)
Sets the
onkeyup event handler. |
void |
setOnlanguagechange(Object onlanguagechange)
Sets the
onlanguagechange event handler. |
void |
setOnload(Object onload)
Sets the value of the
onload event handler. |
void |
setOnloadeddata(Object onloadeddata)
Sets the
onloadeddata event handler. |
void |
setOnloadedmetadata(Object onloadedmetadata)
Sets the
onloadedmetadata event handler. |
void |
setOnloadstart(Object onloadstart)
Sets the
onloadstart event handler. |
void |
setOnlostpointercapture(Object onlostpointercapture)
Sets the
onlostpointercapture event handler. |
void |
setOnmessage(Object onmessage)
Sets the value of the window's
onmessage property. |
void |
setOnmousedown(Object onmousedown)
Sets the
onmousedown event handler. |
void |
setOnmouseenter(Object onmouseenter)
Sets the
onmouseenter event handler. |
void |
setOnmouseleave(Object onmouseleave)
Sets the
onmouseleave event handler. |
void |
setOnmousemove(Object onmousemove)
Sets the
onmousemove event handler. |
void |
setOnmouseout(Object onmouseout)
Sets the
onmouseout event handler. |
void |
setOnmouseover(Object onmouseover)
Sets the
onmouseover event handler. |
void |
setOnmouseup(Object onmouseup)
Sets the
onmouseup event handler. |
void |
setOnmousewheel(Object onmousewheel)
Sets the
onmousewheel event handler. |
void |
setOnmozfullscreenchange(Object onmozfullscreenchange)
Sets the
onmozfullscreenchange event handler. |
void |
setOnmozfullscreenerror(Object onmozfullscreenerror)
Sets the
onmozfullscreenerror event handler. |
void |
setOnoffline(Object onoffline)
Sets the
onoffline event handler. |
void |
setOnonline(Object ononline)
Sets the
ononline event handler. |
void |
setOnpagehide(Object onpagehide)
Sets the
onpagehide event handler. |
void |
setOnpageshow(Object onpageshow)
Sets the
onpageshow event handler. |
void |
setOnpause(Object onpause)
Sets the
onpause event handler. |
void |
setOnplay(Object onplay)
Sets the
onplay event handler. |
void |
setOnplaying(Object onplaying)
Sets the
onplaying event handler. |
void |
setOnpointercancel(Object onpointercancel)
Sets the
onpointercancel event handler. |
void |
setOnpointerdown(Object onpointerdown)
Sets the
onpointerdown event handler. |
void |
setOnpointerenter(Object onpointerenter)
Sets the
onpointerenter event handler. |
void |
setOnpointerleave(Object onpointerleave)
Sets the
onpointerleave event handler. |
void |
setOnpointermove(Object onpointermove)
Sets the
onpointermove event handler. |
void |
setOnpointerout(Object onpointerout)
Sets the
onpointerout event handler. |
void |
setOnpointerover(Object onpointerover)
Sets the
onpointerover event handler. |
void |
setOnpointerup(Object onpointerup)
Sets the
onpointerup event handler. |
void |
setOnpopstate(Object onpopstate)
Sets the
onpopstate event handler. |
void |
setOnprogress(Object onprogress)
Sets the
onprogress event handler. |
void |
setOnratechange(Object onratechange)
Sets the
onratechange event handler. |
void |
setOnrejectionhandled(Object onrejectionhandled)
Sets the
onrejectionhandled event handler. |
void |
setOnreset(Object onreset)
Sets the
onreset event handler. |
void |
setOnresize(Object onresize)
Sets the
onresize event handler. |
void |
setOnscroll(Object onscroll)
Sets the
onscroll event handler. |
void |
setOnsearch(Object onsearch)
Sets the
onsearch event handler. |
void |
setOnseeked(Object onseeked)
Sets the
onseeked event handler. |
void |
setOnseeking(Object onseeking)
Sets the
onseeking event handler. |
void |
setOnselect(Object onselect)
Sets the
onselect event handler. |
void |
setOnstalled(Object onstalled)
Sets the
onstalled event handler. |
void |
setOnstorage(Object onstorage)
Sets the
onstorage event handler. |
void |
setOnsubmit(Object onsubmit)
Setter for the
onsubmit event handler. |
void |
setOnsuspend(Object onsuspend)
Sets the
onsuspend event handler. |
void |
setOntimeupdate(Object ontimeupdate)
Sets the
ontimeupdate event handler. |
void |
setOntoggle(Object ontoggle)
Sets the
ontoggle event handler. |
void |
setOntransitionend(Object ontransitionend)
Sets the
ontransitionend event handler. |
void |
setOnunhandledrejection(Object onunhandledrejection)
Sets the
onunhandledrejection event handler. |
void |
setOnunload(Object onunload)
Sets the
onunload event handler. |
void |
setOnvolumechange(Object onvolumechange)
Sets the
onvolumechange event handler. |
void |
setOnwaiting(Object onwaiting)
Sets the
onwaiting event handler. |
void |
setOnwebkitanimationend(Object onwebkitanimationend)
Sets the
onwebkitanimationend event handler. |
void |
setOnwebkitanimationiteration(Object onwebkitanimationiteration)
Sets the
onwebkitanimationiteration event handler. |
void |
setOnwebkitanimationstart(Object onwebkitanimationstart)
Sets the
onwebkitanimationstart event handler. |
void |
setOnwebkittransitionend(Object onwebkittransitionend)
Sets the
onwebkittransitionend event handler. |
void |
setOnwheel(Object onwheel)
Sets the
onwheel event handler. |
void |
setOpener(Object newValue)
Sets the
opener property. |
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
onerror handler, 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.