How to get chrome extended popup page dom

document.getElementById(el).innerHTML=":"  //
document.getElementById(el).className="a"  //

although the first sentence can take effect, it is certainly not a normal method.
ask
how to get the chrome extension popup page dom

Jun.09,2022

is written in this way, but I didn't notice that content_scripts-> js in Manifest.json cannot have a duplicate js with popup. If there is a duplicate js,document, it will point to windows

.
Menu