I am writing a blog, and I want there to be a like button, but I am curious, how can I get the button to update for everybody?
<button onclick="like()">Like</button>
<span id="likecount">0</span>
and js
function like(){
document.getElementById('likecount').innerText++;
//Toggle code here
}