Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
How can I get modal dialog to pop up once per session using HTML SCRIPT Tag only?

How can I get this modal dialog to pop up once per browser session? Every time I refresh the homepage it pops up. I only want it to pop up once per browser session. I have to include this in the HTML script tags, there is no separate JS file. This is all inside of a PLSQL procedure using the "htp.print" command.

 <html lang="en">
 <head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <title>jQuery UI Dialog - Modal message</title>
   <link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">
   <link rel="stylesheet" href="/resources/demos/style.css">
   <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
   <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script>
   <script>
   $( function ModalPopup() {
     $( "#dialog-message" ).dialog({
       modal: true,
       width: 500,
       buttons: {
         OK: function ModalPopup() {
           $( this ).dialog( "close" );
         }
       }
     });
   } );
   </script>
 </head>
 <body>

 <div id="dialog-message" title="Important Message">
    <p><b>This is Protected system.</b><br><br>
      <b>This system is for authorized users only.</b><br><br>

 By accessing and using this information system, you acknowledge and consent to the following:<br><br>

 •  You are accessing classified information system (which includes any device attached to this information system) that is provided for authorized use only.<br>  
 •  Unauthorized or improper use of this system and its contents may result in suspension or loss of access privileges, disciplinary action, and/or civil and/or criminal penalties.<br> 

 </p>
 </div>


 </body>
 </html>

JSFIDDLE EXAMPLE

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda