Created
June 13, 2010 21:19
-
-
Save curtis/437016 to your computer and use it in GitHub Desktop.
Setting the innerHTML to a non-URL and href attribute to a URL using JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = createElement('a'); | |
link.innerHTML = "This is not a URL"; | |
link.href = "http://flatterline.com"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment