I’m looking into tightening up our ad code by moving it to an external jQuery script, but I obviously still need some HTML to target the ad to. So I was wondering if I can target a noscript element (or within a noscript element) since I’m going to have to leave that on the page anyway, or if I need to have some other element for the JavaScript to target?
<noscript> <div class='ad'><a href='foo'><img src='bar' alt='ad' /></a></div> </noscript>
My intention would be to change or strip the noscript element.
<noscript>content is not only not displayed when JS is active, it apparently is also not in the DOM. I tried accessing content inside a<noscript>area (hoping you couldclone()it with jQuery and insert it somewhere else) but got back nothing.