User Tools

Site Tools


body

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

body [2019/12/17 12:13] (current)
Line 1: Line 1:
 +====== body ======
 +----
 +body - Perform actions on the html element <​body>​
  
 +
 +===== Description =====
 +  body("​$attribute_info"​)
 +  body("​$attribute_change","​$new_value"​)
 +  ​
 +This function returns a string
 +
 +
 +===== Parameters =====
 +** $action **\\
 +Action values:\\
 +"​click"​ - Performs a click in the element\\
 +"​focus"​ - Set the focus to the element
 +
 +** $attribute_info **\\
 +The attribute you want to retrieve\\
 +Special attributes:​\\
 +"​innerhtml"​ - Gets the innerhtml of the element\\
 +"​textcontent"​ - Gets the text content of the element\\
 +
 +** $attribute_change **\\
 +The attribute to change the value
 +
 +** $new_value **\\
 +The new value of the attribute to change
 +
 +===== Examples =====
 +  navigate("​http://​example.org"​)
 +  $text=body("​textcontent"​)
 +  alert($text)
body.txt ยท Last modified: 2019/12/17 12:13 (external edit)