All Products
Search
Document Center

Mobile Platform as a Service:Click title

Last Updated:Jun 15, 2026

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>