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

186
Views
¿Podemos editar el título del cuadro de alerta de Windows que se usa en el script de Google Apps?

¿Podemos personalizar el título en el cuadro de alerta para una aplicación web creada con el script de Google Apps?

ingrese la descripción de la imagen aquí

 function confirmReserve(text){ document.body.style.cursor = 'auto'; console.log('text = '+text); alert(text); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No se puede cambiar el título de una alerta por motivos de seguridad, para que el usuario sepa quién la envía y para evitar posibles suplantaciones de identidad.

Puede usar un cuadro modal para mostrar el mensaje que desea. Como ejemplo:

HTML:

 <!DOCTYPE html> <html> <head> <base target="_top"> </head> <body> <button id="myBtn">Open Modal</button> <div style="display: none" id="myModal" class="modal"> <div class="modal-content"> <span class="close">&times;</span> <p>Some text in the Modal..</p> </div> </div> </body> <script> var modal = document.getElementById("myModal"); var btn = document.getElementById("myBtn"); var span = document.getElementsByClassName("close")[0]; btn.onclick = function() { modal.style.display = "block"; } span.onclick = function() { modal.style.display = "none"; } window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </script> </html>

Luego puede diseñar el modal como una alerta usando CSS.

about 4 years ago · Juan Pablo Isaza 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!