We help IT Professionals succeed at work.

pop-up window block

cakurien
cakurien asked
on
336 Views
Last Modified: 2013-11-28
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
Comment
Watch Question

CERTIFIED EXPERT

Commented:
Hi cakurien,

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

Regards

!i!
CERTIFIED EXPERT

Commented:
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!
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.