开发者

Does Button.click() stop script execution?

I have some code that I paste into the browser that clicks several buttons. After the first one it stops, but if I keep pressing enter in the address bar it eventually clicks them all but it only works one by one.

Does Button.click() stop script execution?

var buttons = document.getElementsByTagName('butto开发者_开发技巧n'); 
for(var i in buttons) 
{
   if(buttons[i].getAttribute("title") == "Get Car Quote") 
   {
      buttons[i].click();
   }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜