Download Free latest courses, and discover all new updated ways of learning programming courses, photography courses, photoshop courses, graphic designing courses, IT related and Language learning courses 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