Answer the question
In order to leave comments, you need to log in
How to interact with the extension?
I'm trying to make an extension that will save information on my site when a certain button is pressed, then insert this information on another site when another button is pressed there.
How to save information to the buffer, I can’t find the information ...
How to paste it too, I wrote a short test
document.addEventListener('DOMContentLoaded', function() {
var checkPageButton = document.getElementById('checkPage');
checkPageButton.addEventListener('click', function() {
document.getElementById('test_1').innerHTML='test'; //если блок
document.getElementById('test_2').value='test'; // если поле
}, false);
}, false);
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