tags:

views:

65

answers:

3

hello how do i create a pop up and how can i set the size etc. ?

+4  A: 

There are a few options. I'd suggest going with an existing popup control, such as:

You could also consider tying in clientside modal windows, such as the jQuery UI dialog, which may work well if you're using ajax.

KP
the jquery BlockUI plugin is definitely the way to go
jmein
also a good one yeah..
KP
+2  A: 

use javascript like this:

window.open("whatever.aspx", "window_name", "width=500,height=500")
Ray
That isnt really a modal popup. It is a whole new window.
jmein
This is also a good suggestion, if the purpose of your popup is to show another url with little to no interaction between the windows.
KP
Good point. I guess it all depends on the situation.
jmein
I would reply, but KP already made my point, so I guess I don't need to say anything.
Ray
very good, i choose this, a new window is good. thanks
Tyzak
A: 

What you could also always do is not "Create" a new popup window but using some CSS, you can show an overlay and show a window like . Which is what lightbox does.

See Create a Lightbox effect with CSS

PieterG