Hazel Mahmud

Hazel Mahmud

  • 1.7k
  • 266
  • 45.6k

reload and close windows

May 16 2020 10:37 PM
Hello..
 
i have 2 page a.aspx and b.aspx. The a.aspx page will redirect to b.aspx after few seconds. Below are the code.
  1. <script type="text/javascript">  
  2. $(document).ready(function () {  
  3. setTimeout(function () {  
  4. window.location.href = "../StaffAttendance/ClockOut.aspx?kdjbt=4100";  
  5. }, 5000);  
  6. });  
  7. </script>  
when the page redirect to b.aspx, b.aspx did not refresh so my code for windows.Close did not work.
 
How to make the b.aspx refresh and run the window.close code working. The window.close should be close after few seconds. Please help. TQ.

Answers (6)