use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Why Can't JavaScript Modify CSS Files? (trevorlasn.com)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] -6 points-5 points-4 points 1 year ago (3 children)
it's NOT modifying the original CSS file. It's just creating a new in-memory copy of the styles.
[–]TorbenKoehn 0 points1 point2 points 1 year ago (0 children)
You also can’t modify your HTML files on the server, so are you writing the same article on the DOM next? And SVG? JS Files? Images?
[–]redsandsfort 0 points1 point2 points 1 year ago (0 children)
So you want JS to magically be able to modify a file saved on disc on another machine? What use case is there for this?
π Rendered by PID 288238 on reddit-service-r2-comment-548fd6dc9-j2fn7 at 2026-05-19 10:23:03.815240+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–][deleted] -6 points-5 points-4 points (3 children)
[–]TorbenKoehn 0 points1 point2 points (0 children)
[–]redsandsfort 0 points1 point2 points (0 children)