<!DOCTYPE html> <html> <body> <h1>Welcome to Working Code</h1> <h2>The confirm() Method</h2> <p>Click the button to display a confirm box.</p> <button onclick="workingCode()">Try it</button> <script> function workingCode() { confirm("Thankyou!"); } </script> </body> </html>
Output
Confirm popup in ServiceNow and JavaScript
Expert Asked question July 18, 2023