OK Rod I will follow up. So what's this Script_Window for then? Isn't it supposed to be able to run complete javascript code from the script window? NOTE: I now have it working, by removing all the html code. Thus now all I have is;
alert('Hello, World!')
Which works ok in the Script_Window when previewed in the "In Browser" mode. It is a bit slow though. Takes about 5 seconds to run after clicking the button.