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.  http://www.webdesignerdepot.com/2012/10/creating-a-modal-window-with-html5-and-css3/
0
 
Mark ElySenior Coldfusion DeveloperCommented:
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Dialog - Default functionality</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(function() {
    $( "#dialog" ).dialog();
  });
  </script>
</head>
<body>

<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>
</div>


</body>
</html>

Open in new window

0
 
Mandeep SinghDatabase AdministratorCommented:
Hi,

Try this, it's bootstrap one: http://getbootstrap.com/javascript/#modals
0
 
Ronak PatelCommented:
Hi,

You can use jQuery UI Modal Dialog Box.

here is the demo: jQuery UI Modal Dialog Box Demo


Hope this helps.

Regards,
Ronak
0
 
APD TorontoAuthor Commented:
Thank you all!
0
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.