Jump to content

Fechar PopUp's


Recommended Posts


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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.