Clear Up
SharpKit Reference

HtmlWindow Class

Namespace: SharpKit.Html4

Base Types

System.Object

Constructors

Name Description
HtmlWindow()

Methods

Name Description
addEventListener(JsString, HtmlDomEventHandler, JsBoolean) Binds the specified function to an event, so that the function gets called whenever the event fires on the object.
alert(object) Displays a dialog box containing an application-defined message.
attachEvent(JsString, HtmlDomEventHandler) Binds the specified function to an event, so that the function gets called whenever the event fires on the object.
blur() Causes the element to lose focus and fires the onblur event.
clearInterval(JsNumber)
clearTimeout(JsNumber) Cancels a time-out that was set with the setTimeout method.
close() Closes the current browser window.
confirm(JsString) Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
detachEvent(JsString, HtmlDomEventHandler) Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
focus() Causes the element to receive the focus and executes the code specified by the onfocus event.
getComputedStyle(HtmlElement, JsString) Returns the computed style of an element. Computed style represents the final computed values of all CSS properties for the element.
getComputedStyle(HtmlElement) Returns the computed style of an element. Computed style represents the final computed values of all CSS properties for the element.
moveBy(JsNumber, JsNumber) method moves a window a specified number of pixels relative to its current coordinates.
moveTo(JsNumber, JsNumber) moves a window's left and top edge to the specified coordinates.
open() Opens a new window and loads the document specified by a given URL.
open(JsString) Opens a new window and loads the document specified by a given URL.
open(JsString, JsString) Opens a new window and loads the document specified by a given URL.
open(JsString, JsString, JsString) Opens a new window and loads the document specified by a given URL.
open(JsString, JsString, JsString, JsBoolean) Opens a new window and loads the document specified by a given URL.
prompt(JsString, JsString) Displays a dialog box that prompts the user with a message and an input field.
prompt(JsString) Displays a dialog box that prompts the user with a message and an input field.
prompt() Displays a dialog box that prompts the user with a message and an input field.
removeEventListener(JsString, HtmlDomEventHandler, JsBoolean) Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
resizeBy(JsNumber, JsNumber)
scrollBy(double, double) Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
scrollTo(double, double) Scrolls the window to the specified x- and y-offset.
setInterval(JsFunction, JsNumber)
setInterval(Action, JsNumber)
setTimeout(JsAction, JsNumber) Invokes a method after a specified number of milliseconds has elapsed.
setTimeout(JsString, JsNumber) Invokes a method after a specified number of milliseconds has elapsed.

Properties

Name Description
appVersion
clipboardData Provides access to predefined clipboard formats for use in editing operations.
console
dialogArguments
event
history
innerHeight The dimensions of the viewport (interior of the browser window)
innerWidth The dimensions of the viewport (interior of the browser window)
name
navigator
outerHeight The dimensions of the entire browser window (including taskbars and such)
outerWidth The dimensions of the entire browser window (including taskbars and such)
pageXOffset The amount of pixels the entire pages has been scrolled
pageYOffset The amount of pixels the entire pages has been scrolled
platform
returnValue
screen Contains information about the client's screen and rendering capabilities.
screenLeft Retrieves the x-coordinate of the upper left-hand corner of the browser's client area, relative to the upper left-hand corner of the screen.
screenTop Retrieves the y-coordinate of the top corner of the browser's client area, relative to the top corner of the screen.
screenX The position of the browser window on the screen
screenY The position of the browser window on the screen
self
userAgent

Fields

Name Description
closed Retrieves whether the referenced window is closed.
document Retrieves the HtmlDocument object that is contained in this window object.
frameElement Retrieves the frame or iframe object that is hosting the window in the parent document.
location Contains information about the current URL.
onafterprint Fires on the object immediately after its associated document prints or previews for printing.
onbeforeprint Fires on the object before its associated document prints or previews for printing.
onbeforeunload Fires prior to a page being unloaded.
onblur Fires when the object loses the input focus.
onerror Fires when an error occurs during object loading.
onfocus Fires when the object receives focus.
onhashchange Raised when there are changes to the portion of a URL that follows the number sign (#).
onhelp Fires when the user presses the F1 key while the browser is the active window.
onload Fires immediately after the browser loads the object.
onresize Fires when the size of the object is about to change.
onscroll Fires when the user repositions the scroll box in the scroll bar on the object.
onunload Fires immediately before the object is unloaded.
opener Sets or retrieves a reference to the window that created the current window.
parent Retrieves the parent of the window in the object hierarchy.
scrollTop Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window.
top Retrieves the topmost ancestor window.

Indexers

Name Description
Item(JsString)
© Copyright 2005-2011 SharpKit. All rights reserved.