actionscript 3 - Force PHP download script pops up a blank page, is there a way to close it? -


the php file ran headers force download (from flash/as3 project), pops blank page. there way close after?

i don't think users want blank page popups springing up.

what thought work, apparently not:

echo ("<script>window.close();</script>") 

you can't echo since that's part of output of script producing file they're downloading. wrote javascript file. there no separate webpage can put code that.

you take care of on code that's starting download (tricky stuff javascript writing 1x1 pixel iframe pointing download url) or accept don't control browser behavior this.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -