View Single Post
Old Mar 12th, 2007, 12:18 PM   #1
bogeypepsi
Newbie
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 bogeypepsi is on a distinguished road
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';
};';
};"
bogeypepsi is offline   Reply With Quote