Welcome, Guest
Username: Password: Remember me

TOPIC: Close Window

Close Window 3 years 5 months ago #61177

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
Is it possible to add a close window js to this alert that comes after saving a survey in index.php:

if (isset($_POST['saveall']) || isset($flashmessage)) { echo "<script language='JavaScript'> $(document).ready( function() {alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>"; } [code][code]
if (isset($_POST) || isset($flashmessage))
{
echo "<script language='JavaScript'> $(document).ready( function() {alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
}
[code]
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 3 years 5 months ago by waitz.
The administrator has disabled public write access.

Re: Close Window 3 years 5 months ago #61182

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 807
  • Thank you received: 115
  • Karma: 93
Yes, but it will most likely not work because most browsers today prevent it and will only allow to close a window that was previously opened by JS.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.091 seconds
Donation Image