showModalDialog
showModalDialog copied to clipboard
return statement fails
I have a function like this:
`function HandlePopup() { var returnValue = window.showModalDialog(url [,args,opt]);
return returnValue != "--cancel--"; }`
So, in this example, what happens is that when performing the eval, I observe that the function declaration is eliminated, preventing a value from being returned.
I depend on the boolean result to continue, I have no other way.
How can I fix this situation?