Tutorial: View.navigate

View.navigate

Navigates the view to a specified URL. The URL must contain the protocol prefix such as http:// or https://.

Example

async function createView() {
    const me = await fin.Window.getCurrent();
    return fin.View.create({ 
        name: 'viewName', 
        target: me.identity, 
        bounds: {top: 10, left: 10, width: 200, height: 200} 
    });
}

createView()
    .then(view => view.navigate('https://example.com'))
    .then(() => console.log('navigation complete'))
    .catch(err => console.log(err));