Library for generating RFC4122 compatible guids in javascript
Load with requirejs and call the NewGuid function to create a GUID
var id = Guid.NewGuid();
// id = '3bce4931-6c75-41ab-afe0-2ec108a30860'
- requirejs
Stack overflow user: broofa
posted this answer:
http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523