index.html#Titles loads web sql list view from same page,... but from external page not load

index.html#Titles loads web sql list view from same page,... but from external page not load

Is any way get data-  attribute value of a link when this go to external page, in this external page? 

I load data in a page (not main) index.html ...from web sql db, but this only works when go from index.html to index.html#Titles  from same page,... but from external page not load? how apply two functions one go from same page and one go from external page to this  index.html#Titles?

in same page using but fails from external page, how distiguish???
  1. $('a', '.subList').live('click', function(e) {
  2. rec.data_polis = $(this).attr('data-polis');
  3. localStorage.setItem("data_polis", rec.data_polis);
  4. if (rec.data_polis != -5) 
  5. getTitles(); 
  6. });

  7. $('.subListInDiv a').live('click', function(e) {
  8. rec.data_polis = $(this).attr('data-polis');
  9. localStorage.setItem("data_polis",rec.data_polis);
  10. getTitles();
  11. });
  12. $('a.subListInDiv2').live('click', function(e) {
  13. rec.data_polis = $(this).attr('data-polis');
  14. getTitles();
  15. });