var timeHours = new Date().getHours(); if (timeHours != 00) { window.location = "about:blank" }