How do I make a Google chrome extension redirect to a specific website?
here is the manifest file
{
"name": "NSHQ ChatBox",
"version": "0.1",
"description": "NSHQ Chat.",
"browser_action": {
"default_icon": "logo.png",
开发者_JAVA技巧 "chrome.windows.create" : "http://nshq.darkbb.com/chatbox/chatbox.forum?"
},
"permissions": [
"http://nshq.darkbb.com/chatbox/chatbox.forum?"
]
}
The Webpage i want to redirect it to is : http://nshq.darkbb.com/chatbox/chatbox.forum?
I am very new to this kind of thing so i wonder if anybody can help me, much appreciated
Is this the answer you're looking for?
window.location.assign('http://yourlink.com');
does that work for your needs?
精彩评论