Generate a random ID
By David Reeder, 03 March 2026
We can use crypto.randomUUID() to generate a random ID:
var id = crypto.randomUUID();
This works in all modern browsers.
By David Reeder, 03 March 2026
We can use crypto.randomUUID() to generate a random ID:
var id = crypto.randomUUID();
This works in all modern browsers.