Results 1 to 2 of 2

Thread: Validations

  1. #1
    karuna Guest

    Default Validations

    Hi I am using the following statements in my javascript.<BR>&#060;script language = "javascript"&#062;<BR>function validations()<BR>{<BR>var var1 = F1.T1.value;<BR> If (var1 == "yes")<BR> {<BR> document.write ("good"+var1+"bad");<BR> }<BR>}<BR>&#060;/script&#062;<BR><BR>while executing I am getting an error saying that object expected on line4 i.e. on line var var1 = F1.T1.value;<BR>If the use the If condition, then only I am getting this problem.<BR>What could be the reason? Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Validations

    It&#039;s not If, it&#039;s if.<BR><BR>JavaScript is case sensitive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts