Skip to content

Instantly share code, notes, and snippets.

@jnugh
Created June 27, 2010 17:34
Show Gist options
  • Save jnugh/455039 to your computer and use it in GitHub Desktop.
Save jnugh/455039 to your computer and use it in GitHub Desktop.
<a id="yourlinkID" href="go.php?href=http://test.de">Link</a>
<script type="text/javascript">
document.getElementById('yourlinkID').href="http://test.de";
document.getElementById('yourlinkID').onclick = function(){
document.location.href = "go.php?href=http://test.de";
return false;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment