-1
I have a page that opens a confirmation popup, the popup is called with the window.showModalDialog
, I need to take true or false of this popup, to work on page 1 where the returned value will be used, but I’m not getting, I was told to use the window.open
instead of window.showModalDialog
, it even opens the popup but does not return the value, but it does not work, I am using VB.Net
//Pagina 1
var Retorno = window.showModalDialog("../Popup/FramePop.aspx?Pagina=PopConfirmacao.aspx")
document.getElementById('idAquiDoElemento').value = Retorno;
//javaScript do botão confirmar no popUp aberto em outra página aspx
function ConfirmarDados(acao, document)
{
window.returnValue = acao;
}