Script Categories

Menus and Navigation >>> Htaccess Login.

Allows you to have a login box embedded in your web page for pages that normally is only available through a pop up dialogue box.



Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
else {
alert("Please enter your username and password.");
//  End -->
<!-- The hidden form field "server" needs to be the
     address of your password protected directory. -->
<form name=login>
type="hidden" name="server" value="">
<input type=text name=username size=20>
<input type=password name=password size=20>
type=button value="Login!" onClick="Login(this.form)" name="button">

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).