How to set stroke of an element through JS?

Hi does anyone know how to change the color of the stroke of an element?
Cant find anything in forum or documentation. Thanks.

I can change the background like this > window.drag_01.style.backgroundColor = ‘#4CAF50’;

But I dont know how to target the stroke.
Any help much appreciated.

What do you mean by stroke.

If you mean border. Then

window.drag_01.style.borderColor = '#4CAF50

1 Like

Thanks very much - simple question I know but thanks for the reply.

How would you target the text colour of an element? Many thanks Mark

window.drag_01.style.color = ‘#fff’;

got it please disregard :slight_smile:

1 Like