1
<!DOCTYPE html>
<html>
<head>
<title>Esconder titulos</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<input type="text" name="texto" id="texto">
<button id="btn">Aplicar T�tulo</button>
</body>
</html>
I have an extension that receives a text and through an input and would like to apply it in the open tab of the browser, replacing the original title.
document.addEventListener('DOMContentLoaded', function() {
document.querySelector('#btn').addEventListener('click', function() {
let text = document.querySelector('#texto').value;
});
});
What would be the command to do this?
You could include HTML in your question?
– Caique Romero