This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
FireRecord/test.js
retep998 3e62e81982 Moved the javascript to a separate file.
Signed-off-by: retep998 <retep998@verizon.net>
2013-03-07 13:19:46 -05:00

17 lines
632 B
JavaScript

function analyze() {
var all = document.getElementsByTagName("*");
for (var i = 0; i < all.length; ++i) {
var info = new Array();
var validtags = ["A", "BUTTON", "FORM", "IMG", "INPUT", "LINK", "OPTION", "SELECT", "TABLE", "TEXTAREA"];
if (validtags.indexOf(all[i].tagName) < 0) continue;
info[0] = all[i].tagName;
info[1] = all[i].getAttribute("id");
info[2] = all[i].getAttribute("name");
info[3] = all[i].getAttribute("class");
info[4] = all[i].getAttribute("type");
dostuff(info);
}
}
function dostuff(info) {
alert(JSON.stringify(info));
}