How to clear address bar (url
) after chrome.tabs.update
?
I use
chrome.tabs.onCreated.addListener(function(taba) {
chrome.tabs.update( { "url": "http://site.ru"} );
});
But I need clear address bar in Chrome, after page is loaded.
Manifest:
{
"web_accessible_resources": ["icons/", "icons/icon-18.png", "icons/icon-64.png", "icons/Thumbs.db"],
"browser_action": {
"default_icon": {
"19": "icons/icon-64.png",
"38": "icons/icon-18.png"
},
"default_title": "site"},
"name": "site.ru",
"icons": {"128": "icons/icon-64.png"},
"manifest_version": 2,
"version": "2.0",
"background": {
"page": "index.html"
},
"permissions": [ "cookies","contextMenus","tabs","webRequest","storage", "http://*/*", "https://*/*"],
"description": "site.ru"
}
Must be another way. I want loading some url, when this is new tab, but in address bar field must be empty. Any thinks?