Answer the question
In order to leave comments, you need to log in
Chrome extensions CSR. How to execute a function?
I have already read everything, but I can not find a clear answer and a solution to the problem
.
<input id="mysubmit" type="submit" value="submit" onclick="mycoolfunc()">
<head> <script>
, it is registered in the manifest, but due to the CSR, chrome does not allow the inline function to be executeddocument.addEventListener('DOMContentLoaded', function () {
document.getElementById('submitbutton').addEventListener('onclick', mycoolfunc);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question