function send() { var dat=JSON.stringify(['asd','fgh',['jkl','zxc']]), req =new XMLHttpRequest(); if (req) { req.open("POST", 'src', true); req.send(dat); } } send();