onclick calc2

Results 1 to 2 of 2

Thread: onclick calc2

  1. #1
    Join Date
    Dec 1969

    Default onclick calc2

    i have tried to use == before but it still does not work. Any suggestions.

  2. #2
    Join Date
    Dec 1969

    Default A number of suggestions

    1. Stick to your original post next time.<BR>2. Buy a good JavaScript book.<BR>3. JavaScript is case sensitive, and also requires brackets around functions. Try this for your function:<BR><BR>function checkspelling() {<BR>if (document.form1.textfield1.value == &#039;cat&#039; && document.form1.textfield2.value == &#039;cat&#039;) {<BR> location.replace (&#039;level1b.htm&#039;); <BR>}<BR>else {<BR> location.replace(&#039;errorspell1.htm&#039;); <BR>}<BR>}

Posting Permissions

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