views:

1650

answers:

4

hi everyone

how to create a modal popup window with background with gray color using javascript and css.

can any body show me the example.

it's urgent

Thanks & Regards

Ravi Kumar

+4  A: 

I would recommend the jQuery one...

http://jqueryui.com/demos/dialog/

J.13.L
Ext.js also has one.
alumb
A: 

HI, You can use two divs for this purpose. The first div contains all your main page contents and the second one is for disabling the contents. When you fire the event make the second div fill all the UI and it should be on top of the first one. If you have any combo box in the first div then you have to disable it or make it invisible otherwise it will pop out of the first div.

rahul
A: 

It's called a "lightbox" and it's been discussed dozens of times before.

Jim Puls
A: 

You can look into creating a JQuery dialog; I believe this will get you the modality you're looking for. I do not think an actual popup window is a solution you want.

overslacked