I have this code:
args["FieldName"] = field_name;
args["FileURL"] = url;
args["FileType"] = type;
newURL = showModalDialog( "includes/filebrowser/insimage.php", args, "font-family:Verdana; font-size:12; dialogWidth:475px; dialogHeight:450px; help:no; status:no;");
Thanks for any help.
No, it is not supported. It's an IE only feature. Check out this link for more information:
The closest thing I could find was this:
look at the comments at the end.
Mozilla based browsers support adding modal=yes to the third argument in a window.open and that will keep the opened window in front of the one that opened it (but doesn't really force it to be modal). There is nothing that will get other browsers to even do this much.
The solution is to open an overlay in the same window that stops the rest of the page being accessed until it is closed.
give some feedback !
Here is a cross browser showModalDialog on my blog.
It works on all major browser.
window.showModalDialog() - Cross Browser, new version | Development Solutions