I am creating some excel file and make his dowload through response object, now i want to close that window after download completed, i don't want to use settimeout(), because it may be fail.due to response browser treat him as a header, and another code doesn't run, is there any way, if yes please share with me.....