|
Javascript debugging
I hate javascript debugging because it is so non specific when you have an error... Anyway here is my script I am having trouble with... (I am getting an error saying I am "missing ; before statement" Please Help
onclick="
if(document.form2.shipfax.value=='Shipper Fax')
{
document.form2.shipfax.value='Shipper Fax <--- REQUIRED';
document.form2.shipfax.style.color='red';
document.form2.shipfax.onfocus='
if(document.form2.shipfax.value=='Shipper Fax <--- REQUIRED')
{
document.form2.shipfax.value='';
document.form2.shipfax.style.color='black';
};';
document.form2.shipfax.onblur='
if(document.form2.shipfax.value=='')
{
document.form2.shipfax.value='Shipper Fax <--- REQUIRED';
document.form2.shipfax.style.color='red';
};';
};"
|