javascript

Discussion in 'JavaScript' started by forum123, Oct 25, 2010.

  1. #1
    i newly learning javascript,but the problem is that the programme doesnot run.i created function,call function,make alart,but still not run.
    can someone tell me what problems may be the caused for it?
     
    forum123, Oct 25, 2010 IP
  2. cyberfox

    cyberfox Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Why don't you paste your code here so we can have a look ?

    anyway , you should first put it in <script></script>
     
    cyberfox, Oct 25, 2010 IP
  3. forum123

    forum123 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i have already put <script></script>
    if(document.form name.id.value)
    then alart type
    document focus
    return true
    return false.
    but 2 ph no checking doesnot run correspondingly
    only one checking moveing
     
    forum123, Oct 25, 2010 IP
  4. JeezMGeez

    JeezMGeez Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Posting the exact code your trying to get working will help, and use code tags to make it readable
     
    JeezMGeez, Oct 26, 2010 IP
  5. Bigcats82

    Bigcats82 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Without your javascript code and the HTML that calls it, there is not much anyone can help you with.

    If your alert is not working, you are not meeting the condition of your if statement. For debugging purposes, try making your first line of code the alert statement. Then go from there... After that, try adding an else to your if statement with an alert.
     
    Bigcats82, Oct 26, 2010 IP