Need help getting input type=button to work in pages
-
Hello,
I’ve gotten other javascripts to work and there’s alot of information on this forum and others on how to get those to work, but there’s on thing i can’t figure out, it’s this script:
<HTML> <HEAD> <br /> <SCRIPT LANGUAGE="JavaScript"> function Login(form) { var username = form.username.value; var password = form.password.value; if (username && password) { var ftpsite = "ftp://" + username + ":" + password + "@" + "ftpserver.se:666/"; window.location = ftpsite; } else { alert("Please enter your username, password."); } } // End --> </script> </HEAD> <BODY> <form name=login> <table width=250 border=1 cellpadding=1> <tr> <td colspan=2 align=center><b>Login to ftp server</b></td> </tr> <tr> <td>Username:</td> <td><input type=text name=username size=20 value=></td> </tr> <tr> <td>Password:</td> <td><input type=password name=password size=20 value=></td> </tr> <tr> <td colspan=2 align=center> <input type=button value="Login" onClick="Login(this.form)"></td> </tr> </table> </form> <br /> </center> </html>This script works fine placed in a normal html file, but using wordpress “pages” and making a page for this, everything shows up correctly, but the “login button” isn’t clickable. I can’t figure it out, please help me. Thanks in advance!!
The topic ‘Need help getting input type=button to work in pages’ is closed to new replies.