Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<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

Hi,

You can use jQuery UI Modal Dialog Box.

here is the demo: jQuery UI Modal Dialog Box Demo


Hope this helps.

Regards,
Ronak
Avatar of APD Toronto

ASKER

Thank you all!