Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

<function_name>

The name of the JavaScript function to be accessed within a <javascript> (with return value) tag.

Child of: <javascript> (with return value)
Parent of: Nothing

Example:

<function_name>myFunction</function_name>

<javascript> (with return value)

Will execute the specified JavaScript and receive a return value from the HTML page.

The JavaScript function to be accessed is specified within the <function_name> tag and all necessary parameters are specified in any number of <parameter> tags, which are passed as an array to the JavaScript function.

The result is written into a variable named javascript_return.

Child of: <button>, <click>, <mouse_click>, <mouse_down>, <mouse_move>, <mouse_out>, <mouse_over>, <node name="">
Parent of: <function_name>, <parameter>

Example:

<javascript>
            <function_name>myFunction</function_name>
            <parameter>Parameter 1 to pass</parameter>
            <parameter>Parameter 2 to pass</parameter>
</javascript>

<javascript> (without return value)

Will execute the specified JavaScript without receiving a return value from the HTML page.

Child of: <button>, <click>, <mouse_click>, <mouse_down>, <mouse_move>, <mouse_out>, <mouse_over>, <node name="">
Parent of: Nothing

Example:

<javascript>sendToJavaScript('Hello World!');</javascript>

Note: The value passed as a parameter to the function must be in single quotes.

<parameter>

A parameter to be passed to a JavaScript function defined within <javascript> (with return value) tags.

The values defined within the <parameter> tags are passed as an array to the JavaScript function.

Child of: <javascript> (with return value)
Parent of: Nothing

Example:

<parameter>Parameter 1 to pass</parameter>
<parameter>Parameter 2 to pass</parameter>
...