Not sure if this will fix it, or not, but try changing this:
Code:
if (username && password && server) {
.. to this:
Code:
if (username !="" && password != "" && server != "") {
As I see it, the way you have it, now, is that it's checking to see if those variables exist. They do, even if the person submitting the form leaves them blank, they still exist. Check to see if they actually contain anything, instead.
Thanks for the suggestion. I have found in fact that IE no longer supports this type of form at all. the useridassword@www.dot.com redirect on submission of the form was removed in IE 8 and is not longer functional for Microsoft Browsers. In any other browser, the fields are not accepted if blank with the current check. The site will simply remain unavailable for Internet Explorer users until the beta has passed.
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.");
}
}
Using a different url eg "http://www.google.com/" it worked fine.
It must not like how the url is being formatted?
Bookmarks