What is Nostr?
Toilet full of bugs /
npub1rcx…tuk3
2023-05-16 12:52:27

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. >
Author Public Key
npub1rcx7h8r4kes9q2wan65kyr59xtl8jktflf5y50tt00jwfzden0estdtuk3