I have written the following function, and try to call it using the below events. This works great in internet explorer but not in netscape. Can you help?
function formHandler(selected)
{
var inselected = selected
if (inselected == "N"
{
document.OrderCriteria.Action.value = "1"
}
document.OrderCriteria.selected.value = inselected
OrderCriteria.submit()
}
<select size="1" name="orderStatus" OnCHANGE="javascript:formHandler('Y')">
<input type="reset" value="Reset" name="btnReset" OnCLICK="javascript:formHandler('N')">
Thanks in advance,
Joy
function formHandler(selected)
{
var inselected = selected
if (inselected == "N"
{
document.OrderCriteria.Action.value = "1"
}
document.OrderCriteria.selected.value = inselected
OrderCriteria.submit()
}
<select size="1" name="orderStatus" OnCHANGE="javascript:formHandler('Y')">
<input type="reset" value="Reset" name="btnReset" OnCLICK="javascript:formHandler('N')">
Thanks in advance,
Joy