Thanks, helps a lot.
I just read more about it, and seems like might be even better use:
<input type='button' value='Try it' onclick="showText()">
instead of button as it works better on different browsers they say? Doing this anyway does not reload the page. But your message opened this to me.