Im simply trying to get text from a input and from there open a URL with a newtab/window (either or) with this value included in the URL.
Example
<html>
<head>
<title>Getting Started Extension's Popup</title>
<style>
body {
min-width: 357px;
overflow-x: hidden;
}
img {
margin: 5px;
border: 2px solid black;
vertical-align: middle;
width: 75px;
height: 75px;
}
</style>
</head>
<body>
<input type="text" name="enter" class="enter" value="9999" id="lolz"/>
<input type="button" value="click" />
</body>
</html>
popup.js (Unsure about)
chrome.browserAction.onClicked.addListener(function(activeTab){
document.getElementById('lolz').value
var newURL = "https://stackoverflow.com/" + value;
chrome.tabs.create({ url: newURL });
});
So the end result is a new window with the url "https://stackoverflow.com/9999"
Currently im getting the following error.
Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".
This is on the popup.html:30