/Ugly/ + 'JavaScript'

A place for ugly, silly, or just-plain-crap JavaScript.

Nostalgic Tribute to document.write

I feel almost nostalgic at the sight of this. A tear may be shed, not just from the pain that the code induces, but from the memory of how humble things once were…

function wrtOut2(){
 parent.main.document.write(ls
 +"<P><FORM><INPUT TYPE='button' NAME"
 +"='but' VALUE=' I want to play again! '"
 +" onClick='parent.location.href=\"s30.ht"
 +"m\";'><P><INPUT TYPE='button' NAME"
 +"='but1' VALUE=' Let Me See the Scripts '"
 +" onClick='parent.location.href=\"s52.ht"
 +"m\";'></FORM></FONT></BODY></HT"
 +"ML><P>");
}

All credit to a truly great publication: The Ugly JavaScript Book

Posted by James on 08 Sep 2011 | linky

Subscribe or follow @UglyJS!
.........
Fork then send a pull request to contribute.