Hazel Mahmud

Hazel Mahmud

  • 1.4k
  • 315
  • 70k

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)