addEventListener()やattachEvent()のコールバック関数に引数を設定する方法
サンプルソース(抜粋)
//ie以外 if(el.addEventListener) { el.addEventListener ( "focus", function() { eval( name + ".myOnfocus(y);" ); }, true ); el.addEventListener ( "blur", function() { eval( name + ".myOnblur(y);" ); }, true ); } //ie else if(el.attachEvent) { el.attachEvent ( "onfocus", function() { eval( name + ".myOnfocus(y);" ); } ); el.attachEvent ( "onblur", function() { eval( name + ".myOnblur(y);" ); } ); }