Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 784 Bytes
title layout author authorurl
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...

{% highlight javascript %} function wrtOut2(){ parent.main.document.write(ls +"

<INPUT TYPE='button' NAME" +"='but' VALUE=' I want to play again! '" +" onClick='parent.location.href="" +"m";'>

<INPUT TYPE='button' NAME" +"='but1' VALUE=' Let Me See the Scripts '" +" onClick='parent.location.href="" +"m";'>

</HT" +"ML>

"); } {% endhighlight %}

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