Logging Out Problems
I want my user to be able to close their browser tab or browser and log out. I used this example http://www.coffeecup.com/help/articles/ … -feature/. I copied and pasted this code in the <head>
<script language="JavaScript" type="text/javascript"> <!-- function closewindow() { self.opener = this; self.close() } //--> </script></head>
I also copied and pasted this code in the <body><a href="nojavascript... closewindow()">Log Out (This will close your browser window)</a></body>
I tested it in IE 10 and Chrome 30.0.1599.101 m. My window in both browsers doesn't close and I stay logged in. What am I doing wrong?
Thanks,
Dave
<script language="JavaScript" type="text/javascript"> <!-- function closewindow() { self.opener = this; self.close() } //--> </script></head>
I also copied and pasted this code in the <body><a href="nojavascript... closewindow()">Log Out (This will close your browser window)</a></body>
I tested it in IE 10 and Chrome 30.0.1599.101 m. My window in both browsers doesn't close and I stay logged in. What am I doing wrong?
Thanks,
Dave
I really need this for my website too once's they log in they stay in i really like this program but my issue is people log in one time to access the website they can go in and out with out put the password again
Thank u
Thank u
Give this a try.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<script>
function closeBrowser(){
window.close();
}
</script>
</head>
<body>
<a href="#" onclick="closeBrowser();">Click to close</a>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<script>
function closeBrowser(){
window.close();
}
</script>
</head>
<body>
<a href="#" onclick="closeBrowser();">Click to close</a>
</body>
</html>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Hey...Thanks...I posted a message asking for help with this and then I found this thread. It works.
Jeff
Jeff
I do that all the time. Ask a question then go looking for the answer. I try to think about the question and then look for the answer. If I can't find it I will then ask if I can remember my question after all that searching. Google can take you astray sometimes.

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.