OLD | NEW |
1 <div id="pageData-name" class="pageData" | |
2 >chrome.devtools.inspectedWindow.* APIs</div> | |
3 | |
4 <p> | 1 <p> |
5 Use <code>chrome.devtools.inspectedWindow</code> | 2 Use <code>chrome.devtools.inspectedWindow</code> |
6 to interact with the inspected window: | 3 to interact with the inspected window: |
7 obtain the tab ID for the inspected page, | 4 obtain the tab ID for the inspected page, |
8 evaluate the code in the context of inspected window, | 5 evaluate the code in the context of inspected window, |
9 reload the page, | 6 reload the page, |
10 or obtain the list of resources within the page. | 7 or obtain the list of resources within the page. |
11 </p><p> | 8 </p><p> |
12 See <a href="devtools.html">DevTools APIs summary</a> for | 9 See <a href="devtools.html">DevTools APIs summary</a> for |
13 general introduction to using Developer Tools APIs. | 10 general introduction to using Developer Tools APIs. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 console.log("the page is not using jQuery"); | 87 console.log("the page is not using jQuery"); |
91 else | 88 else |
92 console.log("The page is using jQuery v" + result); | 89 console.log("The page is using jQuery v" + result); |
93 } | 90 } |
94 ); | 91 ); |
95 </pre> | 92 </pre> |
96 | 93 |
97 <p> | 94 <p> |
98 You can find more examples that use Developer Tools APIs in | 95 You can find more examples that use Developer Tools APIs in |
99 <a href="samples.html#devtools">Samples</a>. | 96 <a href="samples.html#devtools">Samples</a>. |
100 </p> | 97 </p> |
OLD | NEW |