Thursday, January 30, 2014

kandoui mobile - change title

    <div id="show_place" data-role="view" data-layout="home" data-native-menu="true" ninit='init_show_place();'>
      <header data-role="header">
        <div data-role="navbar" id="navbar">
          <span id="show_place_title" data-role="view-title">old title</span>
        </div>
      </header>       
        <script>
            function init_show_place(){                document.getElementById('show_place_title').innerText = "new title";
...
...

No comments:

Post a Comment