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 TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 TorontoSoftware DeveloperAuthor Commented:
Thank you all!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.