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.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…