Para definir un evento, necesitas añadir un pequeño código a cada acción usando el atributo onclick.
To define an event, you need to add a small code to every action using the onclick attribute.
Las acciones ejecutadas por cada menuitem serán llevadas a cabo por un programa del lado cliente llamado en el atributo onclick.
The actions executed by these options will be performed by a client-side script called in the onclick attribute.
Recuerda que el archivo de layout song.xml incluye un atributo onClick.
El atributo onClick del elemento <button> del DOM tiene un significado especial para React porque es un componente pre-construido.
The DOM <button> element's onClick attribute has a special meaning to React because it is a built-in component.
En este ejemplo, el atributo onClick permite que se pueda hacer clic en los elementos, y hemos aplicado Habilitación de la reproducción al hacer clic
In this example, we make each item clickable with an onClick attribute, and we've applied CSS to render the list with a border, and a Enabling playback on click
Luego, puede registrar fácilmente un clic manual (lo opuesto a registrarlo por medio de programación en su Activity) para su control Butotn usando un atributo onClick.
Next, you can easily register a click handler (as opposed to registering it programmatically in your Activity) for your Button control using the onClick attribute.
Notarás que la etiqueta de apertura del LinearLayout contiene un atributo onClick.
Notice that the LinearLayout opening tag lists an onClick attribute.
En el control Button, usted especificó el atributo onClick como sendFeedback.
In the Button control, you specified the onClick attribute as sendFeedback.
Para que un botón esté activo, éste debe tener un atributo onclick con un valor similar al siguiente
For a button to be active, it must provide an onclick attribute with a value similar to the following
Hemos eliminado el atributo onclick del enlace y lo hemos cambiado por un id de forma que podamos localizar el enlace desde el código jQuery.
In the link element in the body we've removed the onclick attribute and replaced it with an id so that we can target the link from the jQuery code.
El atributo onclick del icono y el botón de cerrar activará algunos JavaScript, que añadiremos a continuación.
The onclick attribute of the icon and close button will trigger some JavaScript, which we will add next.
El paso principal es mover el Javascript que está en el atributo onclick a un archivo separado y utilizar un framework Javascript (en este caso jQuery) para conectar estos scripts con eventos sobre los elementos.
The main step is to move the JavaScript in the onclick attribute into a separate file and to use a JavaScript framework, in this case jQuery, to wire up the scripts to events on elements.