I have a page where a file will be uploaded and I am showing upload progress in a separate window as given in attachment.
My concern here is whenever user navigates to other tabs on same browser or to other applications and then click the upload page, the upload progress window should get focused as per attached graphic.
I tried windows.onfocus but this fails when user navigates to different tab on same browser.
what is the code you have written to display the popup? you should use
window.showModalDialog('yourpage.ext', null, "dialogHeight:100px,dialogWidth:100px,resizable:no,center:yes" );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.