<link rel="stylesheet" href="http://www.saddleback.edu/faculty/tdedonno/cimw260/samples/eventTableTwilight.css">
<table style="width:90%;" border="1">
<th colspan="4">Document events correspond to the entire document object - jsFiddle Document</th>
</tr>
<tr>
<td colspan="4"><p class="testArea" id="document">Document Test Area</p></td>
</tr>
<tr>
<td>document.ready()</td>
<td>Call CSS method so that every other row of this table has a light gray background (make sure it differentiates itself from eventTableTwilight.css)</td>
<td>css</td>
<td> </td>
</tr>
<tr>
<td>document.scroll()</td>
<td>On scroll set document test area, to <a href="http://api.jquery.com/scroll/">text scrolling using fadeout.</a></td>
<td><a href="http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_fadeout_fadein">fadeout</a></td>
<td> </td>
</tr>
<tr>
<td>window.<a href="http://api.jquery.com/unload/">unload()</a></td>
<td>W3C <a href="http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_event_unload">Unload example</a>. See what happens on IE exit the tab with eventTable.html loaded. Chrome and Firefox updates both drop <a href="http://stackoverflow.com/questions/6063522/jquery-beforeunload">the unload event</a> this unload event only works on IE</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>window.beforeprint</td>
<td>Chrome 45 has <a href="https://bugs.webkit.org/show_bug.cgi?id=19937">a bug</a>, does not detect beforeprint.</td>
<td>alert</td>
<td>Try File --> Print</td>
</tr>
</table>