How to code in such a way so when you click on the “Extract” button it will run the function DisplayRadioValue?
function displayRadioValue() {
  var str = $("#inputurl").val();
}<button type="button" onclick="displayRadioValue()"> 
  Extract
</button>I tried to use
document.getElementById("myButton").addEventListener("click", displayRadioValue)
But it dosen’t work. Using .addEventListener throws the following errors:
Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Uncaught TypeError: Cannot read property 'addEventListener' of null at popup.js:85
Overall, the file in Google Chrome is working but when I load the extension and try to run then it shows these errors.
 
     
     
     
    