standard.removeCanvas elementAudio elementButton elementHtml elementImage elementScale elementText elementTextInput elementTooltip elementVideo elementVoiceRecorder elementYoutube element

getElement(id).remove()

Removes the element from the screen. This has no effect for non-visual elements such as the purely interactive Selector elements.

Note that this leaves no space where the element previously was on the page (this is really removing the element, not just hiding it).

Example

[js highlight=”4″ try=”true”]
newButton(“clickme”, “Click me”)
.print()
.wait()
.remove()
[/js]

Adds a button that says Click me to the screen, and removes it after it is clicked.