How do I add additonal buttons to a prompt?

So I want to know how I can add or rename buttons on a javascript prompt.

Is this even possible? I’ve tried:

<!doctype html>
<html>
<head>
<script type="text/javascript">
prompt(name, ..., ...);
</script>
</head>
</html>

Doesn’t work. Can anyone find a solution to this?

1 Like

Not with prompt(), no. It only accepts a message to show to the user and a default value:

Yes, that is true…