4 Replies Latest reply on Sep 20, 2011 3:12 PM by EmmaHWriter

    Want to Create a Skin Button that runs JavaScript

    EmmaHWriter

      Hi Everyone,

       

      I'm using RoboHelp 9.

       

      I found a script (see below) that creates an email and automatically inserts the URL from where the user is sending the email.

       

      I pasted the script directly into the HTML of a page to test it worked – and it does.

       

      However, I now want to add a button to a skin that runs this javascript for each page, and have no idea where to begin to get the button to run correctly. I have been able to create a button on a skin, and can see that there are javascript options but that’s as far as it goes…

       

      <script type="text/javascript">/*<![CDATA[*/document.write("<a href=\"mailto:youremail@company.org?subject=ACME%20Application%20("+document.title+")&body="+location.href+"%0A%0A"+"\">Send Feedback</a>")/*]]>*/</script>

       

      Thanks everyone in advance.

      Emma