<script type="text/javascript">
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
}
alert(guid());
</script>
Showing posts with label UUID. Show all posts
Showing posts with label UUID. Show all posts
Friday, December 30, 2016
Create GUID / UUID in JavaScript
Subscribe to:
Comments (Atom)