Open a child window to work like alert box in Firefox

888 views Asked by At

I want to open a child window to work like alert box in Firefox. and user should close the window before proceeding with any other operation. I want to do this because in Firefox the alert box title displays the ipaddress and I want to customize it.

2

There are 2 answers

0
Shane On

Based on your description, another window does not seem like a reasonable solution. There are many JavaScript plugins that will give you a modal overlay within the same page (more analogous to an alert box).

Maybe have a look at:

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

or

http://jacklmoore.com/colorbox/

0
KooiInc On

Here is a basic example of a modal dialog box I wrote in response to another SO-question.