Explore the community Forums Lectora Inspire Tools Questions & Answers How to Change HTML name for Objects Reply To: How to Change HTML name for Objects

#421090 Score: 0
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
355 pts
@timk

I’ll combine some of the ideas from the other posts. Add an action to the button:

On: Page show
Action: Run javascript
Javascript:

getDisplayDocument().getElementById("%HTMLNAME%btn").setAttribute("aria-label", "Enter your Text for the aria-label");

This way the aria-label is added to the <button> element. It worked in my test both Seamless and not. This action is copiable to each button, there should be no need to change anything, but the actual text in “Enter your Text…”