Then call this method after button click:
as this function is quite simple, it is more efficient to call it inline, without declaring it in <head>:
onclick="document.myform.outputtext.value = 'Text to display';"
If you need to append text to already existing text, just use += operator:
onclick="document.myform.outputtext.value += 'Text to display';"
Did I help you?
I manage this blog and share my knowledge for free sacrificing my time. If you appreciate it and find this information helpful, please consider making a donation in order to keep this page alive and improve quality