javascript to open file automatically

Nation150_Rizzo
Level 4

javascript to open file automatically

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,
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: javascript to open file automatically

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 http://www.particletree.com/features/lightbox-gone-wild/