redirects: Day of the Week

[Javascript]

Interested in displaying specific pages on Mondays? How about one document on weekdays and another on weekends? Maybe different pages for every day of the week? It is possible to this with eight HTML documents and four lines of Javascript code.

See How It Works:

Day of Week Redirect Example

What You Will Need:

  • One HTML document containing the Javascript code (this will be the “redirect” page which makes it all work);

  • Seven HTML documents named after the days of the week (sunday.html, monday.html, tuesday.html, etc.).

 

The Code:
Copy and paste the following code inside the <head> tag of your redirect document:

 

Back to Redirects menu.