/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function uniqid() { var newDate = new Date; return newDate.getTime(); }
URL: http://forumsblogswikis.com/2008/05/26/how-to-generate-a-unique-id-in-javascript/