Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

288
Views
¿Es posible crear el efecto de presionar virtualmente una tecla del teclado cuando se carga una página web?

¿Es posible crear automáticamente el efecto de presionar una tecla del teclado mientras se carga la página WEB?

 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test Application</title> </head> <body> <br><br> <center> <h1>Press Any Key</h1> </center> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"> </script> <script type="text/javascript"> $(document).keypress(function(event){ var key = (event.keyCode ? event.keyCode : event.which); var ch=String.fromCharCode(key); alert('You pressed key : ' +ch); $("inputSelector").trigger($.Event("keypress", { keyCode: 90 })); }); </script> </body> </html>
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Necesita un EventListener.

Prueba esto:

 document.addEventListener('keypress', logKey); function logKey(e) { alert( `You pressed key: ${e.code}`); }
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!