Skip to content

Instantly share code, notes, and snippets.

@curtis
Created June 13, 2010 21:03
Show Gist options
  • Save curtis/436998 to your computer and use it in GitHub Desktop.
Save curtis/436998 to your computer and use it in GitHub Desktop.
Setting the href attribute of an anchor tag using JavaScript
var link = document.createElement('a');
link.href = "http://flatterline.com";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment