I\'m trying to accommodate users without JavaScript. (By the way, is it worth the effort nowadays?)
In one HTML file I\'d like part of it execute if scripts are on
You could edit the HTML of the page with Javascript
document.querySelector('div').style.display = 'block';
div { display: none; }
Div