Much of the power of &dactyl.appName; lies in its scriptable expression
evaluation. &dactyl.appName; understands two kinds of expressions: ex
commands, and JavaScript. Ex commands are simple, easy to type, and
readily accessible from the
Echo a JavaScript expression. expr may be a simple quoted string, in which case it is shown in the statusline, or any arbitrary JavaScript expression. If the expression results in anything other than a string, it is pretty-printed in a multiline frame just above the command-line. The output depends on the type of object. Functions display their source, DOM nodes display the pretty-printed XML of the top-level node, XML literals are rendered as page content, and all other objects display their string representation and all of their enumerable properties.
See also
Echo the expression as an error message. Just like
Echo the expression as an informational message. Just like
Execute the ex command string that results from the evaluation of the JavaScript expression expr. For example,
:execute "open " + content.location.host
opens the homepage of the currently opened site.
Evaluates the given cmd as JavaScript. Behaves exactly as
Moreover, multiline scripts can be executed with shell-like here document syntax. For example, the following,
:javascript <<EOF
for each (var tab in tabs.visibleTabs)
tab.linkedBrowser.reload();
EOF
will reload all visible tabs.
Moreover, sophisticated, context-sensitive
The special version
Sets or lists a variable. Sets the variable var-name to the value of the expression expr1. If no expression is given, the value of the variable is displayed. Without arguments, displays a list of all variables. This functionality has few useful applications and so is deprecated.
Deletes the named variables. When