Run Javascript

From UBot Studio
Revision as of 11:58, 17 February 2014 by LillyT (Talk | contribs)

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

This command runs javascript code.

Run Javascript is a Browser Command.

Javascript: Where the desired Javascript is pasted for the purpose of running within the main browser.


Example 1

run javascript("document.write(\"Hello Dolly!\");")


Running the script will run the javascript code. In this example, the code simply places "Hello Dolly" into the main browser.


Runjavascript.jpg


Example 2

This example will use javascript to calculate the quotient of two values set to variables.

The result is then displayed in the browser.

set(#one, 45562849, "Global")
set(#two, 50, "Global")
run javascript("document.write({#one} *{#two} )")

Javascript.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox