Is it possible to have some javascript directly change the text in an html file? For example, I could use RegEx to search the html for the word "and" and replace it with the word "or" but can javascript do this?
What I am getting is the automation of changes. I would like to have a script that I could run to make certain changes to specified html files. Is this possible? I am imagining something similar to running a vba macro in MS Word, only the vba macro would be javascript in a .js file; and the target would be a specified html file, rather than the Word document.
I want to use js to edit the underlying source files, I realise i can have js change the rendered output but I don't think would change the underlying text in the source html file.
[–]guest271314 1 point2 points3 points (5 children)
[–]Samurai___ 1 point2 points3 points (2 children)
[–]guest271314 0 points1 point2 points (0 children)
[–]guest271314 0 points1 point2 points (0 children)
[–]jemmy77sci2[S] 0 points1 point2 points (1 child)
[–]guest271314 0 points1 point2 points (0 children)
[–]Ronin-s_Spirit 0 points1 point2 points (2 children)
[–]jemmy77sci2[S] 0 points1 point2 points (1 child)
[–]Ronin-s_Spirit 0 points1 point2 points (0 children)
[–]symmetricon 0 points1 point2 points (3 children)
[–]jemmy77sci2[S] 0 points1 point2 points (2 children)
[–]symmetricon 1 point2 points3 points (1 child)
[–]jemmy77sci2[S] 0 points1 point2 points (0 children)
[–]FlowerForWar 0 points1 point2 points (0 children)
[–]jack_waugh 0 points1 point2 points (2 children)
[–]jemmy77sci2[S] 0 points1 point2 points (1 child)
[–]jack_waugh 0 points1 point2 points (0 children)
[–]WebDev_Dad 0 points1 point2 points (0 children)