Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
vulmarjunior

Javascript Para Fechar Página

Question

1 answer to this question

Recommended Posts

  • 0

Ae ninguém me respondeu mas eu já consegui a resposta, infelizmente em outro forum.

Mas se alguém tiver a mesma dúvida segue o código

<html>

<head>

<title>Fechar</title>

<script>

function fechar()

{

window.opener = window;

window.close();

}

setTimeout("java script:fechar();",5000);

</script>

</head>

<body>

onde o 5000 representa 5 segundos dai pode ser 4000 (4s) 8000(8s) e por ai vai....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148486
    • Total Posts
      644140
×
×
  • Create New...