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;
});
<img src="http://example.com/log.php?c=123" />this would also work when javascript is disabled (though in 2020ish that's not really a concern)