- Posts: 33
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
<input id="mybutton" onclick="javascript:window.close('','_parent','');" type="hidden" /> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ setTimeout(function () { $('#mybutton').trigger('click'); }, 5000); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
which is wasteful of resources and confusing for the user.
and the consensus was that javascript can only close a window that had been opened via a script.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ setTimeout(function () { window.open('','_parent',''); window.close(); }, 5000); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
When usingand the consensus was that javascript can only close a window that had been opened via a script.
usetarget="_blank"
Please Log in to join the conversation.
<span style="font-size:20px;font-weight:bold">This TAB will be closed in 5 seconds</span> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ setTimeout(function () { window.open('','_parent',''); window.close(); }, 5000); }); </script>
<body> <div class="container"> <div class="jumbotron"> <h1>Hello, world!</h1> <h2>A simple php page</h2> <a href="https://www.myserver.de/limesurvey/index.php/846238?lang=en&newtest=Y" target="_blank" class="button">Start the survey</a> </div> </div> </body>
Please Log in to join the conversation.
Please Log in to join the conversation.