Listing 2 is some code for the onclick event of a button.
清单2是按钮的onclick事件的部分代码。
Using the immediate and onclick attributes of the JSF components.
使用JSF组件的immediate和onclick属性。
Open the script editor for the onclick event for the Submit button.
打开Submit按钮onclick事件的脚本编辑器。
Write the function for handling the onclick event, shown in Listing 8.
编写处理onclick事件的函数,见清单8。
A page has two buttons, each with an onclick event and a computed field.
页面有两个按钮,每个按钮有一个onclick事件和一个computed字段。
With jQuery, we don't need to write an onclick for every single element.
使用jQuery,我们不需要为每个单独的元素都写一个onclick。
The obvious approach would be to define an onclick handler for the #recipe4 ID.
最明显的方法是为 #recipe4 ID定义一个onclick 处理程序。
Remove the code for the onclick event. (be sure to remove the code before proceeding.)
删除onclick事件的代码(确保在继续前删除代码)。
Under the hood, the click-and-drag process starts with an onclick method of the target object.
在内部,点击-拖动过程从目标对象的一个onclick方法开始。
This function is bound to the onclick() event of any radio button named participation_type_id.
该函数被绑定到任何名为 participation_type_id的单选按钮的onclick()事件。
For example, instead of an onchange event for each edit box, use the onclick event of one button.
例如,与每一个编辑框具有一个onchange事件相反,使用一个按钮的onclick事件。
This time, the onclick event of the Link component initiates the Ajax request, as Listing 6 shows.
这时,Link组件的onclick事件初始化了Ajax请求,如清单6所示。
And add the following line of code to the onclick event for the Replace document and Cancel buttons.
将以下代码行添加到Replacedocument和Cancel按钮的onclick事件。
You may be familiar with using events on a Web page by adding events such as onclick and onmouseover.
您可能已经熟悉了通过添加如onclick和 onmouseover 之类的事件在Web页面上使用事件。
The example in Listing 18 shows the onclick event emitted by a button being mapped to an event handler.
清单18中的例子显示一个按钮发出的onclick事件,该事件被映射到一个事件处理程序。
Optionally, for better usability, add the following line of code to the onclick event for the edit button.
为了获得更好的可用性,可以选择将以下代码行添加到编辑按钮的onclick事件。
So you can change the event that's run on a button: you just assign a new function to the onclick property.
因此可以改变按钮触发的事件:只要赋给onclick属性一个新的函数。
All the rectangles are set to respond to onclick, onmouseover, and onmouseout events, and all call the same scripted functions to do this.
所有矩形都设置为响应onclick、onmouseover和onmouseout事件,它们为此调用的是同一个脚本函数。
The Start and Stop buttons below the progress bar are plain JSF buttons that control the bar through their onclick events (see Listing 3).
进度工具条下面的Start和Stop按钮是普通的JSF按钮,通过onclick事件控制着这个工具条(参见列表3)。
The Adobe Flex interface listens for the onclick event (for when the checkbox is selected) for removing an item from the to-do list (Figure 5).
AdobeFlex接口侦听从待办事项中删除项的onclick事件(选中复选框时)(图5)。
When one of these menu text items is clicked, then the corresponding onclick event handler makes the corresponding screen appear in the browser window.
当单击这些菜单文本项时,对应的onclick事件处理函数让对应的屏幕出现在浏览器窗口中。
But there's a slight twist: the onclick property wants to be fed a function reference — not the string name of a function, but a reference to the function itself.
但是有点细微的地方:onclick属性需要提供函数引用——不是函数的字符串名称,而是函数本身的引用。
For an SVG object to respond to a scripted event, the prefix on is added to the trigger names, so click becomes onclick, mouseover becomes onmouseover, and so forth.
要让一个SVG对象对脚本中的事件作出响应,要在触发器名上加前缀on,这样click就变为onclick,mouseover就变为onmouseover,等等。
Then, submitForm() returns false so that the onclick expression of the Send button can return false, indicating the Web browser must not submit the form data to the server.
然后,submitForm()返回false,因此Send按钮的onclick表达式返回 false,指示Web浏览器不要将表单数据提交到服务器。
A button has an argument named onclick whose value is a Callback, a snippet of imperative application logic to be executed when the event occurs. In this particular case two things happen.
按钮拥有名为onclick的参数,它的值是Callback,当事件发生的时候,就会执行一段命令式的应用程序逻辑。
In general, you can pass information from the server runtime to the browser by embedding a server-side script in the client-side code. The following is a client-side onclick event for a button.
通常,通过在客户端代码中嵌入服务器端脚本,可以将信息从服务器运行时传递到浏览器。
Test case to test OnClick user action.
测试OnClick用户动作的测试用例。
Notice the onClick event specified on the button.
请注意按钮上指定的onClick事件。
In the OnClick event handler of the button, you need to write this code.
在按钮的OnClick事件处理程序中,需要写入下列代码。
Expand the Mouse section in the pane on the left, and then click onClick.
展开左侧窗格中的Mouse部分,然后单击onClick。
应用推荐