I ripped my current code from W3Schools just as a test. However, my question specifically is how can I make something like what is shown in the picture below as a login.
It has a required username and password (which I obviously won't give out for obvious reasons). I'm trying to create something like it.
@NEILEVANS It is not possible
You can do two prompts, or use this maybe
But actually these are cancellable and do not provide any real security
You can maybe use js to give access to a page after authentification
But keep in mind that all your pages will be available with the repl and the url