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();
}
}
精彩评论