title: Mobile Application - Wait for element / page to load
body: <p>I have a button which switches to my mobile application from the index.html to a different .html page. This is simply done by a href= bla bla. At the same time, a click-event is being triggered in a Javascript file.</p>
  
  <p>However, I want to wait for the new .html page (if impossible I would like to wait till the desired div I want to access exists) to load before executing the desired function. I tried googling and ended up with miserable attempts with live(), on(), $(window).bind("load" .. - But none of those seemed to work.</p>