Wordpress has a Text Widget (at least the theme I'm using does, and I think they all do?)
In this widget I can add text or HTML. If I add HTML I can include JavaScript. This works fine (I'm hosting my own site).
I want to add some text to the Widget using a script. However;
document.write("Whatever")
writes the text onto the actual web page.
What command do I use to write text into the Text Widget only.
Many thanks for any help!