Tuggle Button add value all page

how do i get the code below to be selected on all pages and send the selected value to database

<html>
<body>

<button id=”toggle” onclick=”myFunction()”>on</button>

<script>

function myFunction() {
var change = document.getElementById(“toggle”);
if (change.innerHTML == “on”)
{
change.innerHTML = “off”;
}
else {
change.innerHTML = “on”;
}
}

</script>
</body>
</html>

and if it’s not too much to ask to update this plugin without reloading the page

http://example.com/wp-content/plugins/test/archivo.php

Read more here:: Tuggle Button add value all page

Leave a Reply

Your email address will not be published. Required fields are marked *