title: Chrome new tab autofocus
body: <p>I am making a Chrome extension and I am using the following:</p>
  <p><strong>manifest.json</strong></p>
  <pre><code>{
      &quot;name&quot;: &quot;Test extension&quot;,
      &quot;version&quot;: &quot;1.1&quot;,
      &quot;description&quot;: &quot;Test extension.&quot;,
      &quot;icons&quot;: {
          &quot;128&quot;: &quot;icon_128.png&quot;
      },
      &quot;chrome_url_overrides&quot;: {
          &quot;newtab&quot;: &quot;cc.html&quot;
      },
      &quot;manifest_version&quot;: 2
  }
  </code></pre>
  <p><strong>cc.html</strong></p>
  <pre><code>&lt;style&gt;body,html{padding:0;margin:0}&lt;/style&gt;
  &lt;iframe src=&quot;theiframe.html&quot; frameborder=&quot;0&quot; height=&quot;200px&quot; width=&quot;200px&quot;&gt;
  &lt;/iframe&gt;
  </code></pre>
  <p><strong>theiframe.html</strong></p>
  <pre><code>&lt;style&gt;body,html{padding:0;margin:0}&lt;/style&gt;
  &lt;form action=&quot;http://www.example.com/search&quot;&gt;
      &lt;input autofocus=&quot;autofocus&quot; tabindex=&quot;1&quot; type=&quot;text&quot; /&gt;
      &lt;input tabindex=&quot;2&quot; value=&quot;search&quot; type=&quot;submit&quot;/&gt;
  &lt;/form&gt;
  </code></pre>
  <p>When the user opens new tab the <strong>autofocus</strong> will be in the address bar. I want the users to be able to change that. Is there any code that will automatically autofocus the search input?</p>