getElementById("password").value; // resourceCall is used to send data to the Client-side JS part of your project resourceCall("loginUser", .