Call function when app page loads

Call function when app page loads

Hello:

I am developing a mobile app using Cordova, but right now I'm simply working on the HTML, JS, and CSS files. 

When the app opens, it will first just come to my "home" section. I have a button that will open the left Panel, and from there, if I click the "Programs" item, then it will fire my function which displays my listview (it does this in this HTML page at the "<div id="divShow"></div>") . Here is my home section:

  1. <section data-role="page" id="home">
  2. <aside data-role="panel" data-display="overlay" id="homeAside">
  3. <h3></h3>
  4. <ul data-role="listview">
  5.                               <li><a href="#home"  id="btnShowProgs">Programs</a></li>
  6.                               <li><a href="#"  id="btnShowRoutines">Routines</a></li>
  7. <li><a href="#"  id="btnShowExLog">Excercise Log</a></li>
  8. <li><a href="#"  id="btnShowEatLog">Eating Log</a></li>
  9. <li><a href="#"  id="btnShowProfile">Profile</a></li>
  10. </ul>
  11. </aside>
  12. <header  data-role="header" data-position="fixed" >
  13. <a href="#homeAside" data-role="button" data-iconpos="notext" data-icon="bullets">Close</a>
  14. <h2>
  15. App Name
  16. </h2>
  17. </header>
  18. <article role="main" class="ui-content">
  19. <div id="divShow"></div>   
  20. </article>
  21. <footer  data-role="footer" data-position="fixed">
  22. <h4>
  23. <!--Copyright &copy; 2016 myApps.biz-->
  24. </h4>
  25. </footer>
  26. </section>

Basically I would like to have it call the div "divShow" when the page loads, like it does when I click the "Programs" list item from my left Panel (<aside>) 

Thanks for any pointers!!