data:text/html,<h1>Hello World!</h1>
<!DOCTYPE html>
<html>
<body>
<style style="display:block" contentEditable>
body { color: blue }
</style>
</body>
</html>
var a = document.createElement('a');
a.href = url;
// any property of window.location works here:
document.write('The hostname of ' + url + ' is ' + a.hostname);
var xhr = window.XMLHttpRequest ?
new XMLHttpRequest() :
new ActiveXObject('Microsoft.XMLHTTP');
xhr.open('PUT', url);
xhr.send(null);
if (confirm("Do you wish to see two alerts?"))
alert(1), alert(2);
if ( window.location != window.parent.location )
window.parent.location = window.location;
Alternatively, use "X-FRAME Options" HTTP Header. http://en.wikipedia.org/wiki/X-Frame-Options#Frame-Options
data:text/html, <html contenteditable>
Make it like neo, in Chrome:
data:text/html, <html contenteditable style="background:#000; color:#0b7408; font-family:sans-serif; padding:5%;">
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }