Trigger a callback when a user clicks the navigation title by listening for the titleClick event.
Use the titleClick interface
document.addEventListener('titleClick', function(e) {
alert('title clicked')
}, false);
Code example
The following code shows a basic demo:
<h1>Click the title to see the result</h1>
<script>
document.addEventListener('titleClick', function(e) {
alert('title clicked')
}, false);
</script>