add custom attribute to standard windows controls

Eg.there is a button name hrg_button, when we press the button,it should popup a prompt window;
We should code the following:
Hrg_button.addtribute.add(“onclick”,”confirm(‘are you sure?’)”);

posted on 2008-01-04 16:56  飞天舞者  阅读(165)  评论(0编辑  收藏  举报

导航

For more information about me, feel free email to me winston.he@hotmail.com