0

I am trying to make a chrome extension for new tabs. I have a search bar on my own page, and I want to focus the cursor on it upon opening the new tab.

However, chrome will automatically focuse the cursor on the address bar by default. And I can not change this. Everytime I open the new tab, I need to click on my search bar to type in it.

I try to use javascript to change the focus:

$('#search-input').focus();

But it doesn't work.

So my question is how can I remove the cursor focused on the address bar by default?

Chenyang
  • 17
  • 1
  • 6

0 Answers0