Refresh element using only JS console
<p>I am needing to refresh only one element using the JS console, rather than refreshing the whole page. I've got code that already works, but it depends on refreshing the page.</p>

<pre><code>  if (document.readyState === "complete") { vote(); }


function vote() { 
//Do some stuff

setTimeout(function(){ 
location.reload(); 
}, 500);
}
</code></pre>