Search code examples
htmlajaxdomgmail

Get code source of dynamically loaded HTML content (Chrome/Gmail)


I am trying to access the HTML code source of AJAX dynamically loaded content. How could I do it? For example on Gmail, I am trying to access the HTML code of a given email discussion's content (the different entries of a given email discussion) which is loaded only when I click on this email discussion's line in the main list. The code source I can access is only the one of the page initially loaded (the list of all email discussions). Any idea?


Solution

  • Right-click on the page and select "Inspect Element". The element view is updated when JavaScript makes changes to the page, whereas the "View Source" view only shows content from when the page was loaded.