Discussion:
http://stackoverflow.com/questions/9575790/how-to-get-time-in-milliseconds-since-the-unix-epoch-in-javascript

In essence:
var milliseconds = (new Date).getTime();

Advertisements