alert is not working

Results 1 to 2 of 2

Thread: alert is not working

  1. #1
    Join Date
    Dec 1969

    Default alert is not working

    function CheckField () {<BR>if(careerform.firstname.value==""){<BR>alert( "Please enter First Name");<BR>careerform.firstname.focus();<BR>return false;<BR>}<BR>return true;<BR>}<BR><BR>Getting trouble with this alert function it is giving alert perfectly, but after pressign OK it is getting connected to asp page. It should not go for other page, it should stay in the same page, up to when user enter first name in the text field.<BR><BR>What is wrong with this code..kindly help me

  2. #2
    Join Date
    Dec 1969

    Default Show the place...

    ...where you *CALL* CheckField from!<BR><BR>If you are using it in a &#060;FORM&#062; tag, did you perchance forget the return keyword?<BR><BR>&#060;FORM ... onSubmit="return CheckField();"&#062;<BR><BR>???<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