Web development · The DOM and events
Every script that changes a page works on the same thing: the tree the browser builds from your HTML, not the file itself.