revBrowserRemoveJavaScriptHandler

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revBrowserRemoveJavaScriptHandler <instanceID>, <handlerName>
Summary

Removes the named handler from the 'LiveCode' object within the current JavaScript context of the browser.

Introduced6.7
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
instanceID

the ID of the browser instance returned by the revOpenBrowser function.

handlerName

the name of a LiveCode handler previously added with revBrowserAddJavaScriptHandler.

Example
revBrowserRemoveJavaScriptHandler tBrowserID, "myLiveCodeHandler"
RelatedCommand: revBrowserStop, revBrowserPrint, revBrowserSet, revBrowserMakeTextBigger, revBrowserNavigate, revBrowserAddJavaScriptHandler, revBrowserClose
Function: revBrowserOpenCef
Message: browserOver, browserNewInstance, browserNewUrlWindow, browserDownloadRequest, browserNavigateCompleteFrame
Securitynetwork
Description

The revBrowserRemoveJavaScriptHandler removes the named handler from the 'liveCode' object within the current JavaScript context of the browser.

Calling the revBrowserRemoveJavaScriptHandler function will remove the corresponding function from the global JavaScript 'LiveCode' object. JavaScript within the browser will no longer be able to call the named handler.

The handler must have previously been registered with the revBrowserAddJavaScriptHandler command.