Element

From NSB App Studio
Revision as of 21:00, 2 September 2012 by Admin (talk | contribs) (Created page with "NSB/App Studio programs run within a special version of a web browser. As a result, they can inherit a lot of the properties of the environment they run in. You can access t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

NSB/App Studio programs run within a special version of a web browser. As a result, they can inherit a lot of the properties of the environment they run in. You can access these properties from within your app.

It is not a complete list: there are additional items in the full HTML documentation. In addition, some browsers may have additional members not shown here.

element object members

attributes[] Returns an array of the attributes of a widget
childNodes[] Returns an array of child nodes for a widget
accessKey Sets or returns an accesskey for a widget
className Sets or returns the class attribute of a widget
clientHeight Returns the viewable height of the content on a page (not including borders, margins, or scrollbars)
clientWidth Returns the viewable width of the content on a page (not including borders, margins, or scrollbars)
dir Sets or returns the text direction of a widget
disabled Sets or returns the disabled attribute of a widget
firstChild Returns the first child of a widget
height Sets or returns the height attribute of a widget
id Sets or returns the id of a widget
innerHTML Sets or returns the HTML contents (+text) of a widget
lang Sets or returns the language code for a widget
lastChild Returns the last child of a widget
length  
nextSibling Returns the widget immediately following a widget
nodeName Returns the tagname of a widget (in uppercase)
nodeType Returns the type of the widget
nodeValue Returns the value of the widget
offsetHeight Returns the height of a widget, including borders and padding if any, but not margins
offsetLeft Returns the horizontal offset position of the current widget relative to its offset container
offsetParent Returns the offset container of a widget
offsetTop Returns the vertical offset position of the current widget relative to its offset container
offsetWidth Returns the width of a widget, including borders and padding if any, but not margins
ownerDocument Returns the root widget (document object) for a widget
parentNode Returns the parent node of a widget
previousSibling Returns the widget immediately before a widget
scrollHeight Returns the entire height of a widget (including areas hidden with scrollbars)
scrollLeft Returns the distance between the actual left edge of a widget and its left edge currently in view
scrollTop Returns the distance between the actual top edge of a widget and its top edge currently in view
scrollWidth Returns the entire width of a widget (including areas hidden with scrollbars)
style Sets or returns the style attribute of a widget
tabIndex Sets or returns the tab order of a widget
tagName Returns the tagname of a widget as a string (in uppercase)
title Sets or returns the title attribute of a widget
width Sets or returns the width attribute of a widget
appendChild() Adds a new child widget to the end of the list of children of the widget
blur() Removes focus from a widget
click() Executes a click on a widget
cloneNode() Clones a widget
focus() Gives focus to a widget
getAttribute() Returns the value of an attribute
getElementsByTagName() Accesses all widgets with a specified tagname
hasChildNodes() Returns whether a widget has any child widgets
insertBefore() Inserts a new child widget before an existing child widgets
item() Returns a widget based on its index within the document tree
normalize() Normalize all text nodes underneath this widget
removeAttribute() Removes a specified attribute from a widget
removeChild() Removes a child widget
replaceChild() Replace a child widget
setAttribute() Adds a new attribute to a widget
toString() Converts a widget to a string