Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created July 18, 2012 12:20
Show Gist options
  • Save stanwu/3135879 to your computer and use it in GitHub Desktop.
Save stanwu/3135879 to your computer and use it in GitHub Desktop.
javascript go to URL
<a href="javascript:go2url('contact.php');" ondblclick="alrt('You double clicked on the link')">HERE</a>
<script>
function go2url(myURL)
{
//alert (clickBusy);
if (clickBusy == 0 ) {
document.location.href=(myURL);
clickBusy = 1;
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment