I have been working on a website that has some text with "text stroke", I want to change the color of that text stroke with javascript and I want four different colors.
But since it is a webkit I don't know how to do it.
This is the only thing I can think of:
guessBox.style.["-webkit-text-stroke: #df0000 3px;"]
});
d2.addEventListener("click", function green() {
guessBox.style.["-webkit-text-stroke: #005100 3px;"]
});
d3.addEventListener("click", function blue() {
guessBox.style.["-webkit-text-stroke: #0029ff 3px;"]
});
d4.addEventListener("click", function white() {
guessBox.style.["-webkit-text-stroke: #fff 3px;"]
});```