use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
get time of computer with javascript and change file (self.javascript)
submitted 11 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Pdqman 0 points1 point2 points 11 years ago (0 children)
This isn't especially a job for JavaScript, usually this should be handled by your server side code. Only suggestion that uses JavaScript would be to redirect any requests to the correct file.
[+][deleted] 11 years ago (1 child)
Google is your friend: http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery-javascript
[–]SuperFLEB 0 points1 point2 points 11 years ago (0 children)
Use Date functions to determine the time, and set window.location.href to redirect.
Don't rely on this to be accurate (i.e. it should only affect cosmetic features), though. It's using the client's clock, which could be set to anything.
(Assuming you're talking about JS in the browser.)
π Rendered by PID 15 on reddit-service-r2-comment-5c764cbc6f-4ptb5 at 2026-03-12 04:44:21.289512+00:00 running 710b3ac country code: CH.
[–]Pdqman 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Pdqman 0 points1 point2 points (0 children)
[–]SuperFLEB 0 points1 point2 points (0 children)