I'm trying to make a Chrome Extension that on click of the extension icon opens a new tab & redirects to a url.
I've managed to find answers that redirect to a url on every new tab opening or load js but I only want it to execute when the extension icon is clicked.
Here's the broken code:
manifest.json
{
"name": "Extension",
"description": "Opens a new tab and redirects",
"version": "0.2",
"chrome_url_overrides": {
"newtab": "redirect.html"
},
"manifest_version": 2
}
redirect.html
<head>
<meta http-equiv="refresh"content="0;URL=http://www.stackoverflow.com/">
</head>
Any ideas? Thanks in advance!