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
  • 52,576
  • 15
  • 105
  • 143
bigpotato
  • 24,574
  • 50
  • 160
  • 313

0 Answers0