chrome extenstion: a html page for input

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.sendRequest(null,{},function(response){.....})

and

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

and ofcourse any other of the chrome api methods.

(sorry for my english)

Answers


Just use chrome.tabs.create:

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


Need Your Help

Using Linq and the Trim.Text for Search

c# linq

I am trying to convert this test code to C# and having a problem with the Trim command. Has anyone done anything similiar like this in C# going to use this with a text box for searching the aspx p...

Get multiple connection strings from web.config

c# web-config connection-string

How to get all the connection strings's names from the web.config via code in C#?