HTML Popup Window

Hi Experts,

How is possible for me to have a html popup. I don't need a new window or tab, but like some sites have a like a popup window in front of the current page, disabling all content under it. I have seen this a lot for surveys.

I need to do a similar popup, and I am guessing/hoping that the "popup" can actually be a hidden div that I can unhide in the middle of the screen and disable all content behind it until the user clicks something from that div.

if someone can get me started, and maybe provide me with a sample script, that would be great.

Thank you
APD TorontoAsked:
Who is Participating?
Dave BaldwinFixer of ProblemsCommented:
This description and demo of a 'modal window' should work for you.
Mark ElySenior Coldfusion DeveloperCommented:
<html lang="en">
  <meta charset="utf-8" />
  <title>jQuery UI Dialog - Default functionality</title>
  <link rel="stylesheet" href="" />
  <script src=""></script>
  <script src=""></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  $(function() {
    $( "#dialog" ).dialog();

<div id="dialog" title="Basic dialog">
  <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>


Open in new window

Mandeep SinghDatabase AdministratorCommented:

Try this, it's bootstrap one:
Ronak PatelCommented:

You can use jQuery UI Modal Dialog Box.

here is the demo: jQuery UI Modal Dialog Box Demo

Hope this helps.

APD TorontoAuthor Commented:
Thank you all!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.