gecko/content/html/document/test/bug448564-submit.js

5 lines
149 B
JavaScript

var inputs = document.getElementsByTagName("input");
for (var input, i = 0; input = inputs[i]; ++i)
if ("submit" == input.type)
input.click();