Element Child

From UBot Studio
Revision as of 16:19, 24 December 2013 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$Element Child is a Browser Function.

This function returns the child of a selected element. To understand what determines an element as the child of another element, please see JavaScript HTML DOM Navigation

$element child gets the child html element of the one matched with the selector.

The Element Selector is used to select an item.

Element: The desired page element.


Example

load html("<html>
    
  <head>
    <title>DOM Tutorial</title>
  </head>

  
  <body>
    <h1>DOM Lesson one</h1>
    <p>Hello world!</p>
  </body>

</html>")
set(#child, $scrape attribute($element child($element offset(<tagname="html">, 0)), "innertext"), "Global")


The set command returns: "DOM Tutorial", which is the child of the selected tag HTML.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox