Take the 2-minute tour ×

im wondering if there is a possibly to add a page to the extenstion, that i can access with a link that is store in the popup page.

i want a page that stay open in a tab, so i can add input to him from the user. even if i press other tabs, becuse the popup page get closed every time(i read there is no way to keep him open)

if there is a way to creat a page like that, is it possible to use stuff like:



chrome.extension.onRequest.addListener(function (request, sender, sendRespons) {

and ofcourse any other of the chrome api methods.

(sorry for my english)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Just use chrome.tabs.create:

    'url': chrome.extension.getURL('yourPage.html')
}, function(tab) {
    // callback code goes here...

Read the docs: http://code.google.com/chrome/extensions/tabs.html#method-create

share|improve this answer
so im making any html page that hold javascript with the chrome api inside the extenstion folder and i call this fucntion from the popup page? –  samy Jul 8 '12 at 18:45
@samy - Yes. It's that simple. –  Joseph Silber Jul 8 '12 at 18:45
thx that what i wanted :) –  samy Jul 8 '12 at 18:46
add comment

Your Answer


