Using the function @DialogBox in a Web application

I want to use the function @DialogBox in a Web application. But "@DialogBox" doesn't work in Web. Is there any other function or a similar function that will allow you to use @DialogBox in a Web application?
One way to achieve similar results is to use JavaScript to open a new window (window.open) containing a form, which the user can use to select values which can be returned to the parent window.

This was first published in June 2002