How to set a timer in JavaScript?

How to set a timer in JavaScript?

Quite often you might come across scenarios wherein you would need to have a timer set in JavaScript. For instance, you might want to call a function after a delay of say 10 seconds or you may want to trigger a function every 15 seconds automatically. A very common...
Crossroads.js tutorial with examples

Crossroads.js tutorial with examples

Are you making a Single Page Application  or an SPA ? And Do you want to update the url of the page without reloading the page? Do you want your page to respond to the change in the url without reloading the page? In Short, if you are looking for a javascript routing...