Java script can be used to draw page and/or to interact with the user

This code use a double for cycle to write table and the events mouseleave,mouseover and click

Move mouse over the table and click somewhere.