Script Categories













Menus and Navigation >>> Ftp Server Login.

Just enter your username, password, and FTP server's address and JavaScript can login into the server for you!

Logon to FTP Server!

Username:
Password:
Server: ftp://

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

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ 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 ftpsite = "ftp://" + username + ":" + password + "@" + server;
window.location = ftpsite;
}
else {
alert("Please enter your username, password, and FTP server's address.");
   }
}
//  End -->
</script>
<form name=login>
<table width=250 border=1 cellpadding=3>
<tr>
<td
colspan=2 align=center><b><h2>Logon to FTP Server!</h2></b></td>
</tr>
<tr>
<td>
Username:</td>
<td>
<input type=text name=username size=20></td>
</tr>
<tr>
<td>
Password:</td>
<td>
<input type=password name=password size=20></td>
</tr>
<tr>
<td>
Server:</td>
<td>
<tt>ftp://</tt><input type=text name=server size=14></td>
</tr>
<tr>
<td
colspan=2 align=center>
<input type=button value="Login!" onClick="Login(this.form)"></td>
</tr>
</table>
</form>

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!).




©