Greetings, I have been tirelessly searching for a solution to my problem with no luck. Here is the issue at hand: I am trying to set up a message board where users can select pre-made templates from a drop-down menu filled with static HTML tags. The goal is for users to be able to load these pre-made tags into the body of their message by selecting an option from the form's drop-down menu. I managed to make this work flawlessly in Firefox, however, Internet Explorer does not support the onclick function to call the JavaScript. Despite my efforts, I have struggled to get onchange on the select element to trigger my JavaScript code. Any assistance on this matter would be greatly appreciated! Thank you.
Below you will find the JavaScript and form that functions correctly in Firefox. Please note that there is a textarea that receives the values produced by the script.
JAVASCRIPT:
function add_event_setup()
{
document.dataform.bodytext.value += "<center><img src=\"../../images/kick_ass_title.jpg\"><br><span class=\"event_title\">INSERT TEXT</span><br><br><table width=\"500\" bgcolor=\"#FF0000\"><tr><td bgcolor=\"#000000\"></td></tr></table></center>";
}
THE FORM:
<select class="formselect">
<option value="Setup" class="formselect">--Setup--</option>
<option value="Setup1" onclick="add_event_setup()" style="border: 1px solid gray" class="formselect">Setup 1</option>
</select>