Artem Stepanenko Artem Stepanenko - 16 days ago 4x
HTML Question

How to make an HTTP request from HTML?

I want to send an async HTTP request from the HTML, parse a response, and update an HTML page respectively. Is there a way to do it without using AJAX or any other third-party library?

I'd like to find the most basic way to do this.
Since libraries can do it, it should be possible without them too.

Worth saying, that I'm a mobile developer who checks web development for a couple of days.


I didn't have to call AJAX a "third-party library". My bad.


Thanks everybody who responded. What I've learned: the only way to do what I wanted is AJAX, in particular, XMLHttpRequest.


There is no way without JS. The most basic way is to either use the new fetch() API, or good old XMLHttpRequest() link