![]() |
Reference Manual |
NAME
js - interact with the Javascript interpreter of the embedded browserSYNOPSIS
js dev [func [arg]]STATUS
jsf flag
jsb [file]
DESCRIPTION...
Command js dev enumerates frames and scripts contained in the current web page of the window with the specified device number. During the enumeration, Type, Source and Text of each object is printed to the Console of the specified device.NOTESCommand js dev func arg invokes the function func with the specified argument.
For example, the command js 0 debug table will invoke the function debug that displays the specified table tag in an alert box.
Command jsf generates the file nat32.js if flag is 1. If flag is 2, the command prints current global variables to STDOUT. That output is usually written to file data.js. The two Javascript files must be included in all pages served by the HTTPD and Honeypot.
Command jsb prints the contents of the global js_buffer that contains Javascript code used by the NAT32 Honeypot. If a valid filename is specified, the file contents is read into the buffer for immediate use by the Honeypot. To clear the buffer, specify the filename as "".
Javascript functions requiring more than one argument are currently not supported.SEE ALSO
Devices, Honeypot, HTTPD, WebCombo, WebSockets