Hi guys and girls,
I notice on this forum when I click on Logout I get a popup confirmation, but my web browser doesn't lose focus or blank out the underlying page I was viewing. If I select cancel, nothing happens and I continue viewing the same page.
Can I ask how this is coded please? I'm coding some PHP, MySQL pages and would like to add a logout confirmation.
I've tried a standard JavaScript popup example but the underlying page goes blank whilst the popup is visible.
Example:
Cheers all,
Ed.
I notice on this forum when I click on Logout I get a popup confirmation, but my web browser doesn't lose focus or blank out the underlying page I was viewing. If I select cancel, nothing happens and I continue viewing the same page.
Can I ask how this is coded please? I'm coding some PHP, MySQL pages and would like to add a logout confirmation.
I've tried a standard JavaScript popup example but the underlying page goes blank whilst the popup is visible.
Example:
Code:
<head>
<script type="text/javascript">
var stay=confirm("Please confirm you want to logout - Press'ok' , or 'Cancel'")
if (!stay)
window.location="../login.php?problem="
</script>
</head>
<body>
Some example tet in the body.
</body>
</html>
Ed.