Hi,
I am trying to check a form field on click of a button calling a function but I am getting the error 'Expected ;'.
Can you tell me what is wrong with my function (below)??
function Check_Form(){
If(document.frmNewArticle.txtMain.value==""{
alert("Main details of article are needed."
}
}
TIA [sig]<p>Simon<br>[/sig]
I am trying to check a form field on click of a button calling a function but I am getting the error 'Expected ;'.
Can you tell me what is wrong with my function (below)??
function Check_Form(){
If(document.frmNewArticle.txtMain.value==""{
alert("Main details of article are needed."
}
}
TIA [sig]<p>Simon<br>[/sig]