JSFiddle - React, Tailwind, and code Playground
by Daedalus
JavaScript
function ajax(){
if(window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
else
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
window.location.replace("http://jsfiddle.net/");
}
}
xmlhttp.open("POST","/echo/json/",false);
xmlhttp.send("test1key=test1val&test2key=test2val");
}
ajax();