Skip to content

Instantly share code, notes, and snippets.

@indolering
Created October 25, 2016 20:55
Show Gist options
  • Save indolering/a62552a30e836a6db919ad306095f8c8 to your computer and use it in GitHub Desktop.
Save indolering/a62552a30e836a6db919ad306095f8c8 to your computer and use it in GitHub Desktop.
if(document){
try {
var h1 = document.createElement("h1");
var text = document.createTextNode("Hello World!");
h1.appendChild(text);
document.body.appendChild(h1);
document.title = "Hello World!";
} catch (error) {}
}
console.log("Hello World!");
@indolering
Copy link
Author

Also:

https://cdn.rawgit.com/indolering/a62552a30e836a6db919ad306095f8c8/raw/4e63206009491cc880428a313e497da87aaf3fdb/hello.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment