Hi Frances.
In WD you can not add "onClick" event to the link. But you can add this code to the URL field. Simply enter following code to the link field of your button or text that you want to link to the PDF:
Code:
javascript:pageTracker._trackPageview("/downloads/map");window.open("http://www.example.com/files/map.pdf","_self");
If you want the PDF to be opened in new window, then you can change it a bit:
Code:
javascript:pageTracker._trackPageview("/downloads/map");window.open("http://www.example.com/files/map.pdf","_blank");
Hope this helps.
Bookmarks