Instant download on a new page

Permalink
Hello

Does anyone know how I get a file to automatically download when the page has loaded?

For context, I have form that the users will fill in, then on the thank you page the file should automatically download.

Thank you in advance!
Laura

PS, sorry if this the wrong forum to post in! Let me know otherwise.