Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send post to URL using js/html

I'm trying to find if its possible to send POST to url using only html and javascript. According to this its not possible. Can anyone knowledgeable tell me is it possible ? and if it's how to do it? ad1 Without using jQuery

like image 483
whd Avatar asked Dec 11 '25 09:12

whd


2 Answers

If you consider jQuery to be JavaScript it sure is.

See here:

http://api.jquery.com/jQuery.post/

If you're going to be doing a lot of this sort of thing in your development in the future, I'd highly recommend you get used to using jQuery.

If you really want to you can use XMLHttpRequest. All major browsers support it.

like image 41
thitemple Avatar answered Dec 14 '25 00:12

thitemple