Call function on mouse click or Enter keypress
Typically useful on anchor elements for which following the link should produce javascript functionality instead of the default action (following the URL).
Function binds mouse click and enter keypress to a specified element, and calls the specified function. The default action (e.g. following the href for an anchor) is prevented.
Release 1.2+ supports binding to more than one element, because the callback function is aware of the target of the click / enter keypress.
Usage:
$.clickOrEnter(yourElement,yourFunction);
e.g.
$.clickOrEnter('a',popup);
This essentially replaces the style of
<a href="javascript:function();">Foo</a>
<a href="foo.html" onclick="function();" onkeypress="function();">Bar</a>
which are inaccessible / obtrusive.
评论
Collapse Click
点击列表行(cell),可以展开被点击的列表行,并显示新的子视图。可以在展开的列表行上加入各种控件,比如UITextField\UITextView。[Code4App.com]
Collapse Click
0
TAW3 with a click
WebAccessibilityTest.Youcanhaveanidea,withasingleclick,ofhowaccesiblewebsitesare.已更新2007年04月25日
TAW3 with a click
0