All Products
Search
Document Center

Click the title bar

Last Updated: Feb 23, 2021

Click the navigation bar title (titleClick) to trigger callback.

Use titleClick interface

 
  1. document.addEventListener('titleClick', function(e) {
  2. alert('title clicked')
  3. }, false);

Code sample

The following code sample demonstrates the basic functions:

 
  1. <h1>Please click the title to see effect </h1>
  2. <script>
  3. document.addEventListener('titleClick', function(e) {
  4. alert('title clicked')
  5. }, false);
  6. </script>