Login within javascript Alert

Asked

Viewed 1,266 times

0

You can login with unique user and password within an Alert?


inserir a descrição da imagem aqui

I wish it was a code like this, I just don’t know how to put 2 prompt in msm popup

2 answers

2

1

This is not exactly "an Alert login", but a login via HTTP Basic Authentication;

Specifically this screenshot appears to be from an authentication of HTTP Basic Authentication, can even login directly to the URL as http://nome:[email protected].

You can read more about it here.

If you really want to use this type of authentication and break display two forms in a single "Alert" this is the only solution as far as you know.

It is worth noting that the display of such "Alert" can change according to the browser, not necessarily will be shown this way.

I believe @lfarroco’s solution, using modal, is better and does not require changes to PHP code, or are minor changes than migrating to another type of authentication.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.