3 Replies Latest reply on Jan 8, 2014 6:10 AM by A scribe at Ascribe

    Add Alt Attribute Info to a Custom Button

    LouisReed
      I have created an alternative to editing the “whtbar.js” file to give an image alt attribute information. We have a custom button in our help file that needed alt information, but we had already incorporated the text into the button’s image and did not want to add the text label. We also did not like the visual border treatment that adding a text label did to the button.

      I wrote this JavaScript function that will not only accomplish this, but it will also capture the functionality that RoboHelp creates for the OnClick event handler and duplicates it in an OnKeyPress event handler for that same button. I have successfully tested this script in both IE (IE 6.0) and Mozilla (Firefox 1.5), and it appears to work fine.