¿Cómo puedo hacer que este cuadro de diálogo modal aparezca una vez por sesión del navegador? Cada vez que actualizo la página de inicio aparece. Solo quiero que aparezca una vez por sesión del navegador. Tengo que incluir esto en las etiquetas de script HTML, no hay un archivo JS separado. Todo esto está dentro de un procedimiento PLSQL usando el comando "htp.print".
<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>