|
Since you want this to work between certain times, then this should really be done server side and not with javascript. If you use javascript you are first hoping that the user has javascript enabled in their browser, not all browsers do for whatever reason, and secondly you would be hoping the current time on the user's device is accurate.
|