# Image Uploader scripting API

# HtmlElement

## HtmlElement class

Available since version 1.3.1 build 4272.

Class methods:

`string getAttribute(string name)`
`setAttribute(string name, string value)`
`removeAttribute(string name)`
`string getId()`
`setId(string id)`
`string getInnerHTML()`
`setInnerHTML(string html)`
`string getInnerText()`
`setInnerText(string html)`
`string getOuterHTML()`
`setOuterHTML(string html)`
`string getOuterText()`
`setOuterText(string html)`
`string getTagName()`
`HtmlElement getParentElement(string id)`
`string getValue()` Get value of an input element.
`setValue(string value)` Set value of an input element.
Note: support of `<input type="file" />` in this function is considered experimental. It works asynchronously. Do not call this function again until FileInputFilledCallback is called.
`scrollIntoView()`
`click()`
`insertHTML(string html, bool atEnd = false)`
`insertText(string text, bool atEnd = false)`
`bool isNull()`
`array getChildren()` Return an array containg child HtmlElements.