Get in touch
or send us a question?
CONTACT

Javascript download file from URL

 downloadByURL(url: string) {
    const link = document.createElement('a')
    link.download = 'result.txt'
    link.href = url
    link.click()
  }
  downloadByURL('File URL')