vaurdan Posted February 18, 2009 at 09:50 PM Report Share #245437 Posted February 18, 2009 at 09:50 PM Existe maneira de quando eu fecho uma POPUp, a janela que foi usada para abri-la mudar de URL? Tipo index.php abre a popup a popup é fechada index.php é redirecionado para obrigado.php Ideias? Tive a investigar mas nao encontrei nada revelante :S http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
Hellblazer Posted February 19, 2009 at 09:14 AM Report Share #245486 Posted February 19, 2009 at 09:14 AM Boas, Tenta isto 😛 Page = A pagina do popup Width = Largura do popup Height = Altura do Populp RedirectTo = pagina para redireccionar depois de fechar popup 😄 function RedirectOnClose(page, width, height, redirectTo) { var url = page; var target = "_blank"; var options = "dialogHeight:" + height + "px; dialogWidth:" + width + "px; status:no;toolbar:no;menubar:no;location:no;scroll:yes;help:no;" var intValue; intValue = window.showModalDialog(url, target, options); window.location = redirectTo; } There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
softklin Posted February 19, 2009 at 09:19 AM Report Share #245487 Posted February 19, 2009 at 09:19 AM Ou se estiveres a usar os popups numa janela separada, tenta usar esta pequena linha no evento de fechar no teu popup: window.opener.location = 'obrigado.php' O exemplo que tinha aqui era window.opener.location.reload(); , e funcionava em Firefox e IE6. Nick antigo: softclean | Tens um projeto? | Wiki P@P Ajuda a comunidade! Se encontrares algo de errado, usa a opção "Denunciar" por baixo de cada post. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now