You know that dialog box that appears when you try to connect to a paswworded page and it asks you for a username and password and has the domain name on it ?

Well im making a web server and want to know how to re-create that box by sending the html code to the user.

Does anyone know how to do this ?