|
Hi
I have written 3 functions that perform the same task.
- Form_OLP001 / Form_OLP002 / Form_OLP003
How do I combine them and pass the FormName variable?
My JS Code sample for 1 Form:
function CheckProductForm_OLP001()
{
var iQuantity = document.Form_OLP001.quantity.value;
if (iQuantity >= 5)
{
alert (iQuantity);
window.location.href = "http://www.excelthrulearning.com/etl%5Fhome/toomuch.html";
return;
}
}
How I call it in the html code:
<input type="text " name="quantity" class="TableOutline" size="2" maxlength="3" onBlur="CheckProductForm_OLP001()">
Thank you.
|
|
|
|
|
|
|
// |