Generate Unique IDs in JavaScript


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function uniqid() {
  2. var newDate = new Date;
  3. return newDate.getTime();
  4. }

URL: http://forumsblogswikis.com/2008/05/26/how-to-generate-a-unique-id-in-javascript/

Report this snippet


Comments


You need to login to view comments.