Halo , if I make one page only for login to admin area and use it only for login,
how can I do to after enter my pasword and confirm login button to close this login window, now always affter login move it to home page or a page where I select in security area....
I use wonder cms with iframe in diferent page and login have in menu of this page....
you can see it here:
http://petslovers.eu/
closing Iframe login popup after successful login
I think I need to edit login button and give him 2 funcions .One to confirm login and second to close the current page or window....All with one touch on the button
Thaks
[SOLVED] closing Iframe login popup after successful login
[SOLVED] Transparent background theme...
Hello , I found good solution ...
close window in 10 seconds
or,countdown 10 sec. and then it closes
close window in 10 seconds
Code: Select all
<script type="text/javascript">
function closeWindow() {
setTimeout(function() {
window.close();
}, 10000);
}
window.onload = closeWindow();
</script>
<h3>Thank you</h3>
This window will close in 10 seconds.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<script type="text/javascript">
function closeWindow() {
setTimeout(function() {
window.close();
}, 10000);
}
window.onload = closeWindow();
</script>
<SCRIPT LANGUAGE="JavaScript">
var start=new Date();
start=Date.parse(start)/1000;
var counts=10;
function CountDown(){
var now=new Date();
now=Date.parse(now)/1000;
var x=parseInt(counts-(now-start),10);
if(document.form1){document.form1.clock.value = x;}
if(x>0){
timerID=setTimeout("CountDown()", 100)
}
}
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
window.setTimeout('CountDown()',100);
-->
</script>
<body>
<br />
<br />
<br />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center" >Thank You for submitting your application we will get back to you within 24-48 hours!</div>
<FORM NAME="form1">
<div align="center" >This window will automatically close in
<input type="text" name="clock" size="2" class="textinput" value="10" />
seconds. </div>
</FORM></td>
</tr>
</table>
</body>
</html>
Re: closing Iframe login popup after successful login
Good work for finding a solution!