An event that can signal when a URL action occurs.
function urlActionEventHandler(event) { console.log('URL: ' + event.detail.url); console.log('Target: ' + event.detail.target); } let viz = document.getElementById('tableauViz'); viz.addEventListener(TableauEventType.UrlAction, urlActionEventHandler);
The target attribute associated with URL (for example, the identifier associated with a browser tab).
The URL associated with the event.
An event that can signal when a URL action occurs.
function urlActionEventHandler(event) { console.log('URL: ' + event.detail.url); console.log('Target: ' + event.detail.target); } let viz = document.getElementById('tableauViz'); viz.addEventListener(TableauEventType.UrlAction, urlActionEventHandler);