Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search


  • Content Count

  • Joined

  • Last visited

  1. I used the code that Perp provided (thank you!) and made sure that my file was named correctly. When I'm viewing the page as a visitor, it doesn't start a download. It just opens a new tab. I need it to download because this form does not have the same functionality when viewed with browser's automatic pdf viewer. Here's the code updated to reflect my file name: <script> var link = document.createElement('a'); link.href = '/s/ca81622nd.pdf'; link.download = 'ca81622nd.pdf'; link.dispatchEvent(new MouseEvent('click')); </script> Am I missing a step somewhere? If not, anyone know how to do this? I don't need it to be a part of a form. I'm just not sure how to create a download link in squarespace.
  • Create New...