browser
Send commands to the JavaScript browser.
Available in:
| Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
| X |
|
|
|
|
Syntax
void browser(cmd[,parameter])
int cmd
expr parameter
Description
Sends special commands to the DesignVision JavaScript running in the browser.
Commands are defined in dv.h:
|
Command |
Description |
Parameter |
|
browser_kill_cookie | Removes the DVJS_COOKIE
| N/A |
|
browser_help_winname | Sets the help window name
| Window name |
|
browser_killwin_prompt | Sets the kill window prompt.
If set, then DVJS will open a prompt box when the user tried to close the window
via Alt-F4 or the X. To reset, send the command with no parameter.
| String to display in the prompt |
|
browser_call_parent | Calls the DVJScall function
with the supplied parameter.
| Parameter to pass to DVJScall(). |
|
browser_heartbeat | Sets the heartbeat timeout value
| Value in milliseconds |
Example
Prompt the user to set the browser heartbeat timeout value:
browser(browser_heatbeat,prompt("Heartbeat timeout -> "));