sync , javascript ,
async means the server call will be executed in parallel thread and your js will continue to execute.
You should never use sync - a bad user interface for humans
Added: And you most likely should not use XMLHttpRequest directly - there are subtle differences between browsers. It is much better to use a library like jQuery, yui, mootools, etc.
source
share