Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created April 10, 2010 01:08
Show Gist options
  • Save markmarkoh/361744 to your computer and use it in GitHub Desktop.
Save markmarkoh/361744 to your computer and use it in GitHub Desktop.
//Custom javascript must be self-executing.
// Valid Example:
document.body.getElementById("feature_box").innerHTML = "Treatment Text";
document.body.getElementById("feature_sub_box").innerHTML = "Split Test";
//Valid Example:
function change(str) {
document.body.getElementById("feature_box").innerHTML = str;
}
change("Treatment Text");
//Invalid Example:
//Lacks call to change()
function change(str) {
document.body.getElementById("feature_box").innerHTML = str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment