To make sure the question more clear,
I want to re-implement the prompt object in JAVASCRIPT because i want to get two variables from the user at the same time.
If it is possible to extend, re-implement or override this object, please tell me how. If not, do you have better solutions?
Thanks.
You should use something like http://jqueryui.com/demos/dialog/#modal-form
You will need to split your javascript where you have your dialog
So if you had
you now need
Or if you insist to override the built-in function you can do something like this (which currently gives an error since I am not using an html page):