void InjectJavaScript

Injects JavaScript into the calling frame

Security

Trust Level Required: Low Trust

Parameters

Name Description
js The JavaScript to inject.
contextUrl (Optional) URL to base browser XSS checks on. Defaults to null.

Remarks

Calling this method on KioBrowser in most cases may be preferable as KioBrowser inherits KioFrame and runs in the main browser.
The context URL is where the page script is located. The renderer may request this URL to show the developer the source of the error.

Examples


//print a stringified KioInfo object from the toolbar via CustomToolbarCode.js
KioFrame.InjectJavaScript('console.log(JSON.stringify(KioInfo))'); 
    

Requirements

KioWare for Windows version 8.10 or greater.