since window.showModalDialog
doesn't work on chrome, I'm using it in case of firefox
and in chrome
I'm using window.open but my problem is that the return value of window.open is undefined maybe because the javascript continue before i close the child window so I tried to put the code in this condition if (returnValue.closed)
.. but the problem is that the child window is loading all the time and i can't choose my value from it.
This is my code:
if (window.showModalDialog) {
var retVal = window.showModalDialog(...)
if (!window.showModalDialog) {
var retVal = window.open(...);
while (a == 0) {
if (retVal.onload()) {
if (retVal.closed) {
if (retVal != null) {...
}
}
}
}
}
Any help is highly appreciated.