Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Is it possible to have a button in my document that will allow the viewer to share the file to an email address they provide? I know there is the option to share by social media so its the same idea, just sending the link to the email provided by the viewer.
in how_to by (150 points)
  

1 Answer

0 votes
 
Best answer

Yes, add the following as a hyperlink on your button:

javascript:window.open('mailto:?subject=Check%20this%20out&body=' + location.href ,'_blank');

Note that the text has to be "escaped" (e.g., "%20" instead of a space).

location.href is what generates the URL to the current page.

by (197k points)
selected by
Email link button to specific page