Normally I open a window with javascript to show information about a upload progress, but it doesn't look good and many users uses popup blockers.
So I thought I could show these information in an iframe, but the iframe doesn't load during the upload.
But if I open the iframe during the upload in a new window/tab if loads.
How could I force that the iframe should be loaded?
HTML:
<script type="text/javascript">
function test() {
document.getElementById('iframe').innerHTML = '<iframe src="./stats.php?id=123456"></iframe>';
}
</script>
<form action="upload.php" enctype="multipart/form-data" method="post">
<input id="upload" name="upload" size="30" type="file">
<input type="submit" value="Upload File" onclick="test();">
</form>
<div id="iframe"></div>