<script> function convertURL(){ var url = location.href; var timstamp = (new Date).valueOf(); if (url.indexOf("?")>=0){ url = url + "&ts=" + timstamp; }else { url = url + "?ts=" + timstamp; } location.href = url; alert(23445) } document.getElementById("refresh").onclick = function(){ convertURL() }; </script>