WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMWindowInternal

IID:86f7b733-aff9-469a-9e8c-2996f7db2720
Inherits From:nsIDOMWindow2

Properties

readonly PRBool closed

readonly nsIDOMWindow content

readonly nsIControllers controllers

readonly nsIDOMCrypto crypto

DOMString defaultStatus

readonly nsIDOMBarProp directories

readonly nsIDOMElement frameElement

PRBool fullScreen

readonly nsIDOMHistory history

PRInt32 innerHeight

PRInt32 innerWidth

readonly PRUint32 length

readonly nsIDOMLocation location

readonly nsIDOMBarProp locationbar

readonly nsIDOMBarProp menubar

readonly nsIDOMNavigator navigator

nsIDOMWindowInternal opener

PRInt32 outerHeight

PRInt32 outerWidth

readonly PRInt32 pageXOffset

readonly PRInt32 pageYOffset

readonly nsIDOMBarProp personalbar

readonly nsIDOMPkcs11 pkcs11

readonly nsIPrompt prompter

readonly nsIDOMScreen screen

PRInt32 screenX

PRInt32 screenY

readonly PRInt32 scrollMaxX

readonly PRInt32 scrollMaxY

readonly nsIDOMWindowInternal self

DOMString status

readonly nsIDOMBarProp statusbar

readonly nsIDOMBarProp toolbar

readonly nsIDOMWindowInternal window


Methods

void alert ( DOMString text ) DOMString atob ( DOMString asciiString ) void back ( ) void blur ( ) DOMString btoa ( DOMString base64Data ) void close ( ) PRBool confirm ( DOMString text ) [noscript] PRBool find ( DOMString str , PRBool caseSensitive , PRBool backwards , PRBool wrapAround , PRBool wholeWord , PRBool searchInFrames , PRBool showDialog ) void focus ( ) void forward ( ) void home ( ) void moveBy ( PRInt32 xDif , PRInt32 yDif ) void moveTo ( PRInt32 xPos , PRInt32 yPos ) [noscript] nsIDOMWindow open ( DOMString url , DOMString name , DOMString options ) [noscript] nsIDOMWindow openDialog ( DOMString url , DOMString name , DOMString options , nsISupports extraArgument ) void postMessage ( DOMString message ) void print ( ) DOMString prompt ( DOMString message , DOMString initial , DOMString title , PRUint32 savePassword ) void resizeBy ( PRInt32 widthDif , PRInt32 heightDif ) void resizeTo ( PRInt32 width , PRInt32 height ) void scroll ( PRInt32 xScroll , PRInt32 yScroll ) nsIVariant showModalDialog ( DOMString URI , nsIVariant args , DOMString options ) void stop ( ) void updateCommands ( DOMString action )

void alert ( DOMString text )

Arguments:
text

DOMString atob ( DOMString asciiString )

Arguments:
asciiString

void back ( )


void blur ( )


DOMString btoa ( DOMString base64Data )

Arguments:
base64Data

void close ( )


PRBool confirm ( DOMString text )

Arguments:
text

PRBool find ( DOMString str , PRBool caseSensitive , PRBool backwards , PRBool wrapAround , PRBool wholeWord , PRBool searchInFrames , PRBool showDialog )

Arguments:
str
caseSensitive
backwards
wrapAround
wholeWord
searchInFrames
showDialog

void focus ( )


void forward ( )


void home ( )


void moveBy ( PRInt32 xDif , PRInt32 yDif )

Arguments:
xDif
yDif

void moveTo ( PRInt32 xPos , PRInt32 yPos )

Arguments:
xPos
yPos

nsIDOMWindow open ( DOMString url , DOMString name , DOMString options )

Open a new window with this one as the parent. This method will NOT examine the JS stack for purposes of determining a caller. This window will be used for security checks during the search by name and the default character set on the newly opened window will just be the default character set of this window.

Arguments:
url
name
options

nsIDOMWindow openDialog ( DOMString url , DOMString name , DOMString options , nsISupports extraArgument )

Arguments:
url
name
options
extraArgument

void postMessage ( DOMString message )

Implements a safe message-passing system which can cross same-origin boundaries.

This method, when called, causes a MessageEvent to be dispatched at the primary document for the window upon which this method is called. (Note that the postMessage property on windows is allAccess and thus is readable cross-origin.) The dispatched event will have message as its data, the calling context's window as its source, and a domain and URI determined by the calling context's main document URI.

See the WHATWG HTML5 specification, section 6.4, for more details.

Arguments:
message

void print ( )


DOMString prompt ( DOMString message , DOMString initial , DOMString title , PRUint32 savePassword )

Arguments:
message
initial
title
savePassword

void resizeBy ( PRInt32 widthDif , PRInt32 heightDif )

Arguments:
widthDif
heightDif

void resizeTo ( PRInt32 width , PRInt32 height )

Arguments:
width
height

void scroll ( PRInt32 xScroll , PRInt32 yScroll )

Arguments:
xScroll
yScroll

nsIVariant showModalDialog ( DOMString URI , nsIVariant args , DOMString options )

Arguments:
URI
args
options

void stop ( )


void updateCommands ( DOMString action )

Arguments:
action

References

This interface is the type of the following properties:

nsIAppShellService.hiddenDOMWindow, nsIDOMWindowInternal.opener, nsIDOMWindowInternal.self, nsIDOMWindowInternal.window, nsIMsgCompose.domWindow, nsIMsgWindow.domWindow, nsISearchContext.findDialog, nsISearchContext.replaceDialog, nsISearchContext.targetWindow, nsIXPIInstallInfo.originatingWindow

This interface is passed as an argument to the following methods:

nsIAppShellService.getHiddenWindowAndJSContext, nsIBrowserInstance.setWebShellWindow, nsIContentViewerFile.printWithParent, nsIFormSubmitObserver.notify, nsIMessenger.loadURL, nsIMessenger.setWindow, nsIMsgCompose.Initialize, nsIMsgComposeService.InitCompose, nsIMsgComposeService.cacheWindow, nsIMsgComposeService.getMsgComposeForWindow, nsIMsgComposeService.isCachedWindow, nsIMsgComposeService.registerComposeWindow, nsIMsgComposeService.unregisterComposeWindow, nsIMsgPrintEngine.setParentWindow, nsIMsgPrintEngine.setWindow, nsIMsgProgress.openProgressDialog, nsIMsgSend.createAndSendMessage, nsIPrintProgress.openProgressDialog, nsIPrintStatusFeedback.setDocShell, nsISignonViewer.setValue, nsIWalletEditor.SetValue, nsIWalletPreview.SetValue, nsIWalletService.WALLET_InitReencryptCallback, nsIWalletService.WALLET_Prefill, nsIWalletService.WALLET_PrefillOneElement, nsIWalletService.WALLET_RequestToCapture

This interface is returned from the following methods:

nsIWindowDataSource.getWindowForResource, nsIWindowMediator.getMostRecentWindow

Reference documentation is generated from Mozilla's source.