We have write a lot of ajax code with the help of jQuery or other helper library. Now let's see what a raw ajax code looks like! [sourcecode language="html"] <a href="onclick=%22serverSideAlert%28%29;">Call server-side function </a> <script type="text/javascript"> function serverSideAlert(){ var request = new XMLHttpRequest(); request.open('get', '/', false); request.send(null); alert(request.responseText); } </script> [/sourcecode]