Hi, I am uploading a file through an iframe.
HTML:
<from action="upload.php" target="iframe"> <input type="file" name="file" /> <input type="submit" /> </form> <iframe name="iframe" src="javascript:false;"></iframe>
Now I would like to stop loading at boot. So I would like to stop loading the iframe.
What i tried
$("iframe").attr("src", "javascript:false;");
$("iframe").remove();
if (typeof(window.frames[0].stop) === "function") window.frames[0].stop(); else window.frames[0].document.execCommand("Stop");
All functions do not give an error, but after a while the file that I canceled was displayed in the download folder. So it's a weird thing.
Any suggestions?
source share