Using JavaScript to download file directly

  Newuser549 23:06 11 Aug 2003
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 2003

Try posting this into the web design section.

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

Elsewhere on IDG sites

Galaxy Note 8 vs iPhone X

Graphic tees: 14 best websites to find your next T-shirt

How to update iOS on iPhone or iPad

Les meilleures applications pour enfants 2017