I work on an application and I want to connect the front end (JavaScript) with the back end (Java). I have an input in HTML. When a user inputs something, by clicking on a button, I want to get that value in Java, so I can perform some actions on it. How can I do this? Thank you!
<input type="text" id="input" placeholder="Input...">
<button type="button" id="button" onclick="loadResults()">Search</button>
XMLHttpRequestor any wrapper that your framework provides