Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/10/2016, 12:59
mpozo
 
Fecha de Ingreso: noviembre-2015
Mensajes: 231
Antigüedad: 8 años, 4 meses
Puntos: 86
Respuesta: hacer funcionar autoclick

Y sin JQuery
Código Javascript:
Ver original
  1. <div id="mytest1"></div><br>
  2.  
  3.  
  4. <script type="text/javascript">
  5. window.setTimeout(function() {
  6. document.getElementById('mytest1').click()
  7. }, 10000); // 10 seconds delay
  8.  
  9. document.getElementById('mytest1').addEventListener('click', function() {
  10. console.log('click simulado');
  11. }, false);
  12. </script>