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?’)”); 相关文章: