Using JavaScript to download file directly

  Newuser549 23:06 11 Aug 03
Locked

Any JavaScript gurus listening?

I want the user to be able to download a pdf file by simply left-clicking a link rather than the more involved right click and "save target as".

Is there a way of using a JavaScript onclick function to modify the default left click behaviour of viewing the file? It should work in all browsers and all OS......

Thanks.

  DieSse 00:52 12 Aug 03

Try posting this into the web design section.

This thread is now locked and can not be replied to.

Hands-on: Acer Predator Triton 700 review

D&AD Awards 2017: see the best design, advertising, illustration, animation and VR of the past year

How to lose weight with an Apple Watch