Created
October 9, 2009 19:28
-
-
Save phred/206267 to your computer and use it in GitHub Desktop.
Comment on "advanced Javascript techniques" blog showing a nice way to format HTML-with-JS.
This file contains hidden or 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
// Comment on http://sixrevisions.com/javascript/6-advanced-javascript-techniques-you-should-know/ | |
pageContainer.innerHTML = array('', | |
'<h1>' + pageTitle + '</h1>', | |
'<div id="content">', | |
' <p>' + pageContent + '</p>', | |
' <div id="author_bio">', | |
' <p>' + authorBio + '</p>', | |
' </div>', | |
'</div>', | |
'<div id="footer">', | |
' <p>' + footerContent + '</p>', | |
'</div>').join('\n'); | |
pageContainer.innerHTML = HTMLCode; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment