0

I'm trying to use javascript (no jquery) to find an element so I add an event listener to the click event. I can alter the CSS with no trouble:

document.styleSheets[0].insertRule('video::-webkit-media-controls-start-playback-button { display: block !important; }', 1)

How would I use document.getElementsByTagName() or similar functions to fetch this dom element?

isherwood
  • 58,414
  • 16
  • 114
  • 157
bigpotato
  • 26,262
  • 56
  • 178
  • 334

0 Answers0