tabs.html revision 8ae428e0fb7feea16d79853f29447469a93bedff
1<div id="pageData-name" class="pageData">Tabs</div>
2
3<!-- BEGIN AUTHORED CONTENT -->
4<p id="classSummary">
5Use the <code>chrome.tabs</code> module
6to interact with the browser's tab system.
7You can use this module to
8create, modify, and rearrange tabs in the browser.
9</p>
10
11<img src="images/tabs.png"
12     width="323" height="50" alt="Two tabs in a window" />
13
14<h2 id="manifest">Manifest</h2>
15<p>All but two functions* require you to declare the "tabs" permission in your extension's manifest to use the tabs API.
16For example:
17</p>
18
19<pre>{
20  "name": "My extension",
21  ...
22  <b>"permissions": [
23    "tabs"
24  ]</b>,
25  ...
26}</pre>
27
28<p>* The two functions that do not require the "tabs" permission are: tabs.create and tabs.update</p>
29<h2 id="examples"> Examples </h2>
30
31<p>
32You can find simple examples of using the tabs module in the
33<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/">examples/api/tabs</a>
34directory.
35For other examples and for help in viewing the source code, see
36<a href="samples.html">Samples</a>.
37</p>
38
39<!-- END AUTHORED CONTENT -->
40