Can we setAttribute on Alert?

Viewed 100

I have created an alert on Samsung Tv App that shows some warning now I want to apply Text to speech on alert but it only reads OK Button not the alert message instead I want to read the alert message than OK button.

So to do that I have to setAttribute('role', 'alert') but I don't know how can I do that

1 Answers

You can set that attribute directly on markup if it's in access control.

Related