Getting the current page ID when a link/button is pressed.

Getting the current page ID when a link/button is pressed.

Hi is it possible when a link is pressed to get the ID of the page the link is in?

For example.

  1. <div data-role="page" id="lazy_summer">
  2. <div data-role="header">
  3. <h1>Page One</h1>
  4. </div>
  5. <div data-role="content">
  6. <a href="#page2" id="callEvent">Example</a>
  7.        // When this link is clicked the page id (lazy_summer) is displayed before
  8.        // The page transition.
  9. </div>
  10. <div data-role="footer">
  11. <h4>Page Footer</h4>
  12. </div>
  13. </div>

I wish to return the the id="lazy_summer";

Thanks,
Lammie.