In a browser, events are typically generated in response to user actions: a button fires an ONCLICK event when the user clicks.
在浏览器中,通常为响应用户操作而生成事件:当用户单击按钮时,按钮产生一个ONCLICK事件。
Notice the onClick event specified on the button.
请注意按钮上指定的onClick事件。
For example, if you want the progress bar to start when the user clicks a button, you can add an onclick event to the button, using the code that you see in Listing 1.
例如,如果您想要这个进展在用户点击一个按钮时开始,您可以在一个按钮上添加一个onclick事件,使用您在列表1中所看到的代码。
应用推荐