0

The app I am working on used windows.showModalDialog which depreciated, so I replaced it with window,.open which workd fine but with one issue - it is not modal. I have found that one can use window.open Dialog instead but replacing window.open with window.openDialog broke my links.

I had

ret = window.open(target, "", "scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=500,height=300");

which worked, so I tried:

ret = window.openDialog(target, "", "scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=500,height=300");

which did not. Can someone help me fix it so it works?

Coding Duchess
  • 6,445
  • 20
  • 113
  • 209

1 Answers1

0

When you pass the parameter in the Window.openDialog, the extra parameter should come after WindowFeatures parameter like Window.openDialog("any url", "name", "", "feature", arg1,arg2);

jesusverma
  • 1,625
  • 1
  • 16
  • 17