Skip to content

Instantly share code, notes, and snippets.

@aarongough
Created June 9, 2010 16:06
Show Gist options
  • Save aarongough/431705 to your computer and use it in GitHub Desktop.
Save aarongough/431705 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#clickme").click(function() {
$("#clickme").after("<script src='http:\/\/gist.github.com\/431162.js'><\/script>");
return false;
})
})
</script>
</head>
<body>
<p>This page has existing content that should not be removed...</p>
<button id='clickme'>Click me!</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment