Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
182 bytes eliminados
, hace 7 años
Línea 92: |
Línea 92: |
| onShow: function () { | | onShow: function () { |
| $('#searchInput').focus(); | | $('#searchInput').focus(); |
− | $('#searchInput').val('Comunicación'); | + | $('#searchInput').val('Comunicación'); |
− | var pressEvent = document.createEvent('KeyboardEvent');
| |
− |
| |
| var input = document.getElementById('searchInput'); // Get the element where you want to press. | | var input = document.getElementById('searchInput'); // Get the element where you want to press. |
| input.dispatchEvent(pressEvent); // Press the key. | | input.dispatchEvent(pressEvent); // Press the key. |