title: Working with Pages in jQuery Mobile
body: <p>I have noticed an interesting issue with how jQuery treats hyper links. According to the doc, clicking on a link will trigger a AJAX call and the requested page's contents are stuffed in the current's pages DOM. </p>
  
  <p>Now consider this, index.html has a hyperlink which points to location.html. Inside location.html I'm using  <code>window.onload = getMyLocation ;</code> to trigger a call to a JavaScript function. Since jQuery mobile just picks up the code within data-role of page, my JavaScipt code never gets a chace to run and as a result I need to explicitly refresh the page. Is there a workaround?</p>
  
  <p>Thanks
  KJ</p>