Download file from iframe

URL, Specifies the URL of the document to embed in the iframe. Possible values: A relative URL - points to a file within a web site (like src="default.htm")  Hi there, I've serached high and low but can't find an answer to this one I'm trying to embed a document in a web-page with an iframe but I  Summary. The download() function is used to trigger a file download from JavaScript. It specifies the contents and name of a new file placed in the browser's  Jul 22, 2019 Can't make a file download when a page loads.