if(document.getElementById("username").value == "" || document.getElementById("password").value == ""){
alert("Username or password cannot be blank");
//elem.focus(); // set the focus to this input
return false;
}
thanks a lot....that worked...
both worked on an editor i tried online...but in eclipse only your suggestion worked....
maybe its got to do with weblogic server...have to use it....not allowed to use apache...
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
The server has absolutely nothing to do with JavaScript: JavaScript runs on the *client*--the browser.