windowpopup function behaves differently for MS edge browser
Posted on 2016-07-14
windowpopup(openUrl, window, "height=400px;width=460px;status:0;help:no;scroll=no","showModalDialog");
This behaves fine for IE 11, FF and chrome, but on MS edge browser, the window doesnot come up and gets bypassed al;together.
Now, if I change the 'window' parameter which is the 2nd parameter in the line above to a string say "window", it works well on all browsers. But if the window is having a button and I need to capture its event, I do form1.submit where form1 is the window name, in that case submit button doesnot work.This is because button needs a form object or window object to tag to itself and in cases where we have changed the 2nd parameter above from window object to a string,, the button is not working.