Link to home
Start Free TrialLog in
Avatar of cakurien
cakurien

asked on

pop-up window block

Hai,

I created a pop-up window using javascript(window.open and given necessary attributes)
I need that window to lock like "alert dialogue box" .

That means that window should not allow the user to minimize or switch over to another window. User should respones to that window, If he want to go to another window , user should close the window(like alert)

Thanks in advance
Avatar of Ivo Stoykov
Ivo Stoykov
Flag of Bulgaria image

Hi cakurien,

for IE use window.showModalDialot
for other browsers use
<body onblur="this.focus();">

Regards

!i!
Hi again cakurien,

sorry - typo

should be  window.showModalDialog(url, params, window_propertis)
options are like window.open but you have additional one - params that you could pass as null or "" (empty string)


HTH

!i!
ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines 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