The example in this article describes how js obtains the return value of the dialog box prompt. Share it with everyone for your reference. The specific analysis is as follows:
Get the return value of the dialog prompt, see example:
I hope this article will be helpful to everyone’s JavaScript programming design.