Ignore me, I just tried a simple alert("hello") and it popped up as you would expect. I really appreciate your post on this Dominique, it illustrates how easy it is to get tunnel vision when working on something. I had always vaguely assumed that js would be stripped in question text and so saw what I expected when I did the first test. This has given me some ideas for future development. I really am rather excited at the possibilities.
If Moodle had medals I would nominate Dominique Bauer for Question Type Hero (First Class).
If Moodle had medals I would nominate Dominique Bauer for Question Type Hero (First Class).