a small question

Discussion in 'JavaScript' started by asmon, Apr 4, 2008.

  1. #1
    I've seen this code

    xmlHttp.onreadystatechange=function()
    {
    }

    i don't understand the "=function()" part, it's not a way to call or create a function so what is it?
     
    asmon, Apr 4, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you are telling the javascript engine the function to call when the ready state is changed.
     
    MMJ, Apr 4, 2008 IP