use of pageInit ?

use of pageInit ?

i have code using jquery, i try to integrate for mobil plateform using jqueryMobile.

Before to refresh some elements, i use a function called by 
  1. <body onload="refresh_content();"> 


I seen, i can't still use onload, but pageinit, i tried to use it.... :

At the first load of the page, it's ok (the function is called), but when i click on a button with http-link, the function isn't called again.

where i must put code with pageinit, for the javascript function be called at any load of the page?
  1. $( document ).delegate("#PageId", "pageinit", function() {
  2. refresh_content();
  3. } ) ;

and also where for the function refresh_content() ? in the <head> after call of jquery and jquery.mobile ?