JavaScript Post Request

Hey guys, I have a simple static site I'm trying to add a contact form to. I made a simple mailer app thing ( that accepts JSON like this:

{ "name": "Robert", "email": "", "message": "blah blah blah"} Code (markup):

I can't figure out how to make this request using plain JS. Can someone please show me how its done and break it down for me? I'm having trouble finding a full example online that uses plain js and json.


JavaScript Post Request

Poster :