Toilet full of bugs on Nostr: I have a noddy #JavaScript problem that is driving me bonkers because I think it must ...
I have a noddy #JavaScript problem that is driving me bonkers because I think it must be so simple, but I can't work out how to Simon Says the solution.
I have a bunch of html files that contain the same fragment of text. I want to hold that in a js file in case I want to update it. (PHP is not an option, or I'd just use that!)
I used an external js file with `document.write("some text");`and called the script where I wanted the text to appear. It works, but I believe I should use innerHTML. >
I have a bunch of html files that contain the same fragment of text. I want to hold that in a js file in case I want to update it. (PHP is not an option, or I'd just use that!)
I used an external js file with `document.write("some text");`and called the script where I wanted the text to appear. It works, but I believe I should use innerHTML. >