Hazel Mahmud

Hazel Mahmud

  • 1.4k
  • 315
  • 69.5k

Redirect page at given time.

Jun 1 2020 2:03 AM
Let say i have this code below:
  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>  
how do i set the time read from database..
 
Let say every day at 3PM the page will redirect to /StaffAttendance/ClockOut.aspx.
 
Please help. TQ in advance.

Answers (3)