Tutorial: View.executeJavaScript

View.executeJavaScript

Executes Javascript on the view, restricted to views you own or views owned by applications you have created.

Example

async function executeJavaScript(code) {
    const view = await fin.View.wrap({uuid: 'uuid', name: 'view name'});
    return await view.executeJavaScript(code);
}

executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));