Basically, I want to create a login popup like the one that a lot of routers have to get access to the setup page:
is it possible to implement this on an html file at all or is it only for server based access?
Basically, I want to create a login popup like the one that a lot of routers have to get access to the setup page:
is it possible to implement this on an html file at all or is it only for server based access?
You should probably read this:
http://en.wikipedia.org/wiki/Basic_access_authentication
and this:
http://www.php.net/manual/en/features.http-auth.php
In short words:
1 You can invoke this popup using special headers.
2 You can invoke this popup only before page starts loading.
3 You can't do this using html+js only.
4 You can't invoke prompt windows with password-like inputs with pure js.
UPD:
That question was answered, having the following comment from author to main post in mind:
Is there a way to get the exact popup in the picture? i.e its a
browser based popup not styled?
I never stated, that one can not create SIMILAR styled popup with js+html. The answer was about invoking the exact popup.