Function Reference


_IEPropertySet

Set a select property of the Browser or DOM element

#include <IE.au3>
_IEPropertySet ( ByRef $oObject, $sProperty, $vValue )

Parameters

$oObject Object variable of an InternetExplorer.Application
$sProperty Property selection (see remarks)
$vValue The new value to be set into the Browser Property

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero.
@error: 3 ($_IEStatus_InvalidDataType) - Invalid Data Type
4 ($_IEStatus_InvalidObjectType) - Invalid Object Type
5 ($_IEStatus_InvalidValue) - Invalid Value
@extended: Contains invalid parameter number

Remarks

The following table provide a description of each property available for use.
Some properties to DOM elements, others to the browser.

Browser Properties

Property Description
"addressbar" Specifies whether the address bar of the object is visible or hidden.
"contenteditable" Specifies a Boolean value that indicates whether the object can be edited with mouse and keyboard.
"height" Specifies the height of the browser main window.
"innerhtml" Sets the rendered HTML of an element excluding the beginning and ending element tags.
"innertext" Sets the rendered Text (but not any tags) of an element. Typically identical to outertext.
"left" Specifies the screen coordinate of the left edge of the browser main window.
"menubar" Specifies a Boolean value that indicates whether the browser menu bar is visible.
"offline" Specifies a Boolean value that indicates whether the browser is currently operating in offline mode.
"outertext" Sets the rendered Text (but not any tags) of an element. Typically identical to innertext.
"outerhtml" Sets the rendered HTML of an element including the beginning and ending element tags.
"resizable" Specifies a Boolean value that indicates whether the object can be resized.
"silent" Specifies a Boolean value that indicates whether the browser can show dialog boxes.
"statusbar" Specifies a value that indicates whether the browser status bar is visible.
"statustext" Specifies the text in the browser status bar.
"theatermode" Specifies a Boolean value indicating whether the browser is in Theater Mode. In theater mode, the browser main window fills the entire screen and displays a toolbar with a minimal set of navigational buttons.
"title" Sets the document title. Note that this is different than the window title which typically starts with the document title, but has additional text specified in the windows registry appended to it.
"toolbar" Specifies a Boolean value indicating whether the tool bar of the browser is visible or hidden.
"top" Specifies the screen coordinate of the top edge of the browser main window.
"width" Specifies the width of the browser main window.

Related

_IEAction, _IEBodyWriteHTML, _IEDocInsertHTML, _IEDocInsertText, _IEPropertyGet

Example

; Open a browser with the basic example, check to see if the
; addressbar is visible, if it is not turn it on. Then change
; the text displayed in the statusbar

#include <IE.au3>

Local $oIE = _IE_Example("basic")
If Not _IEPropertyGet($oIE, "statusbar") Then _IEPropertySet($oIE, "statusbar", True)
_IEPropertySet($oIE, "statustext", "Look What I can Do")
Sleep(2000)
_IEPropertySet($oIE, "statustext", "I can change the status text")