1 Reply Latest reply on Sep 24, 2009 10:16 PM by Captiv8r

    RoboHelp 8 HTML - Toolbar Button: Email with Link to Topic


      Within a skin, I'd like to create a custom email button on my toolbar that would allow a user to email a direct link to a specific file in my RoboHelp project (a Share this Topic feature).


      I thought it might be something like this:


      window.location=('mailto:ENTERNAME@DOMAIN.COM?Subject=Useful Step-by-Step&body=This Step-by-Step may be helpful for you: ' + window.location)


      but that just calls the toolbar, not the topic.


      I have the following code that I could imbed on each topic page, but for consistency, I'd like to have this functionality on the toolbar if possible:


      <p><script type="text/javascript">

      var mailSubject = 'Useful Information';

      var mailBody = 'This page might help: ' + location.href;

      var mailDisplay = 'Click here for a demo.';


      '<a href="mailto:yourname@yourSite.com'

      + '?subject=' + escape(mailSubject)

      + '&body=' + escape(mailBody)

      + '">' + mailDisplay + '</a>'