Is it possible to insert content NOT loaded from a url, into a tab after creating a new tab by using;
chrome.tabs.create(object createProperties, function callback)
Can this be done, or is there any other way to achieve the required effect?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, sort of. Each tab in Chrome must have some url, even a blank page. You can create a tab linked to html page from your extension folder though, that’s what would be a workaround.
So if you create a stub html page called “newTab.html” and put it into extension folder:
Then you can create a new tab linked to this page and send required data through messaging.
In background.html page: