Javascript and AJAX, only works when using alert()

前端 未结 9 1190
借酒劲吻你
借酒劲吻你 2020-12-01 15:01

I am having trouble with my javascript. It seems to be acting oddly. This is what\'s going on. I have a form, after the user submits it, it calls a function(onsubmit event)

9条回答
  •  广开言路
    2020-12-01 15:37

    You have to pass the third parameter to xmlhttp.open() as false, then it will work fine

提交回复
热议问题