example11_simple_events - add simple event callbacks

e.g. onclick, onmouseover, onmouseout



show FuncyTag html string output

show Javascript source code

To Notice: If funcyTag property is an "on" method (e.g. onblur, onmouseover, etc...) then it will be an event callback on that object.

For example, the behavior when you move your mouse over any of these boxes, is controlled by this property which was added to the funcyTag:
onmouseover: function(elem,evt) {
  elem.style.backgroundColor = 'black';
  elem.style.color = 'white';
}

next: example11b_simple_events_w_render top: all js examples