Fix VBScript Popup Modal Error

Job ID: 40352879

Budget: $10 – $30 USD

I have a small form that relies on a VBScript + JavaScript snippet to show a simple popup with two buttons—OK and Cancel—whenever the user clicks Submit. It works locally, but once the site is published the browser throws a “modal dialog” error and the window never appears.

The task is straightforward: identify the root cause of that error and deliver a reliable, cross-browser solution that still shows the same two-button dialog and carries out the existing logic tied to each button. I need the fix implemented directly in the current script; a full rewrite isn’t necessary.

Deliverables
• Corrected VBScript/JavaScript code that triggers the popup without errors in the live environment
• Brief inline comments or a short note explaining what broke and how you fixed it

Once the popup opens cleanly after deployment and both buttons work as before, the job is complete.