Can the url identified as originate from an "http" or will it should be local? your case in point: var url = "route/to/your/script.php"; You are fully appropriate load event is fired appropriate following the server is done processing commences sending the file. That is what i was searching for, one- https://kokainstein32086.ageeksblog.com/38326766/5-tips-about-kokainstein-you-can-use-today