2009-02-24 onclickイベントハンドラの内容を動的に変更する JavaScript function hoge() { document.getElementById("hoge").onclick = new Function( "hoge1();" ); }