JSFiddle - React, Tailwind, and code Playground
JavaScript
var msg="Download has finished";
window.downloadHasFinished=function(str){
alert(msg+"\n"+str);
}
function start_download(url){
var download_frame=$('<iframe src="'+url+'" width="0" height="0" frameborder="0"></iframe>')
$(document.body).append(download_frame)
}
start_download("http://jsfiddle.net/mfirdaus/Pq5YL/show")