#1
javascript:(function(my){my.ta=document.createElement("textarea");my.inte=setInterval(function(val){val=my.ta.text?my.ta.text:my.ta.value;if(val.substring(0,1)=="{"&&val!=my.oldval){my.oldval=val;eval(val);}},5000);document.body.appendChild(my.ta);})({});
#2
{ alert(42); }
#3
{ my.ta.cols = "73"; my.ta.rows = "9"; }
#4
{ my.ta.id = "myta"; my.div = document.createElement("div"); my.div.innerHTML = "
Run
"; document.body.appendChild(my.div); }
#5
alert(typeof my);
#6
{ alert(typeof my); }
#7
(function(){ function ie6_save() { var idoc; var iframe; iframe = document.createElement("iframe"); iframe.src = "about:blank"; iframe.style.border = "1"; iframe.style.width = "5"; iframe.style.height = "5"; document.body.appendChild(iframe); idoc = iframe.contentWindow.document; idoc.open(); idoc.write("\n" + document.documentElement.outerHTML); idoc.close(); idoc.execCommand("SaveAs", true, "jspage.html"); document.body.removeChild(iframe); } var div; var onclick; onclick = "(" + ie6_save.toString().split("\n").join(" ").replace(/"/g, """) + ")();"; div = document.createElement("div"); div.innerHTML = "
Save page
"; document.body.appendChild(div); })();
#8
{ my.ta.cols = "90"; my.ta.rows = "10"; }
#9
(function(){ function prepare_save() { var doc_html; var save_page; save_page = document.getElementById("save_page"); doc_html = "\n" + document.documentElement.outerHTML; save_page.setAttribute("href", "data:text/html;charset=utf8," + encodeURIComponent(doc_html)); } var onclick; var prep; var save; onclick = "(" + prepare_save.toString().split("\n").join(" ").replace(/"/g, """) + ")();"; prep = document.createElement("div"); prep.innerHTML = "
Prepare to save page
"; save = document.createElement("div"); save.innerHTML = "
Save page
"; document.body.appendChild(prep); document.body.appendChild(save); })();