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

OnePlus 5T review: Hands-on

Illustrator Andrés Lozano on his improv line work, brazen use of colours & hand sketching

iPhone X review

Comment envoyer gratuitement des gros fichiers ?