Skip to main content
Nation150_Rizzo
Level 3
October 23, 2014
Question

javascript to open file automatically

  • October 23, 2014
  • 1 reply
  • 944 views
We used to have some sort of javascript sitting on some landing pages. When you go to that landing page, I want it to prompt you to download a pdf, not take you away from that page, but just download it while you are still on that landing page. Anyone know the code to do this?

Thanks,

1 reply

October 23, 2014
probably the best way would be to build an modal overlay. Lightbox is a library i use quite often, more info here:  http://lokeshdhakar.com/projects/lightbox/ and here particletree.com/features/lightbox-gone-wild/