0

I am sending data to log.php

Due to window.location page is redirecting when sending data.

can i send data to log.php without redirecting current page?

setTimeout(function(){ 

var a = "http://example.com/log.php?c=";

window.location = a+trim;


});
Vyas
  • 9

1 Answers1

0

By XMLHttpRequest

xhttp.open("GET", "url", true);
xhttp.send();
Mike Foxtech
  • 1,633
  • 1
  • 6
  • 7