Standard hyperlink behavior. It can be applied to any DOM element having href attribute defined.
These elements have behavior:button applied by default:
<a href="url">...</a>This behavior knows about:
href="url" - hyperlink url;target="ID" - ID of frame element where to load the URL content.Other than standard set of events (mouse, keyboard, focus) behavior:hyperlink generates:
spacebar key press events when button is in focus. Posted (asynchronous) event.If this is event is not consumed by user's code then nearest document will handle URL loading.
N/A - behavior:hyperlink does not introduce any specific methods.
N/A.
onClick handlervar btn = $(a#some);
btn.onClick = function() { event handling code ...;
return true; /*consume the event*/ }
on() subscriptionvar btn = $(a#some);
btn.on("click", function() { ... event handling code ... });
self.on("click", "button#some", function() { ... event handling code ... });
include "decorators.tis"; @click @on "a#some" :: ... event handling code ...;