Login inside the javascript alert

0

Can you login with a unique user and password within an alert?

I want it to be a type code, I just do not know how to put 2 prompt in msm popup

    
asked by anonymous 22.09.2016 / 20:57

2 answers

2

Within alert , but you can get user information through prompt . link

The problem is that this is not a very "friendly" way of getting data. Take a look at whether a modal window within the page itself would meet your requirements:
link

    
22.09.2016 / 21:19
1
  

This is not exactly a "login to alert", but a login via HTTP Basic Authentication ;

Specifically, this screenshot appears to be a HTTP Basic Authentication fault authentication, and can directly log in 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 two forms into a single "alert" this is the only solution, as far as you know.

Note that displaying such an alert may change according to the browser, it will not necessarily be shown this way.

  

    
23.09.2016 / 21:27