for (var i = 0; i < document.getElementsByTagName("input").length; i++) {
if (document.getElementsByTagName("input")[i].id.indexOf("tx_ID") > -1) {
document.getElementById("hid_SetValue").value += document.getElementsByTagName("input")[i].id + "," + document.getElementsByTagName("input")[i].value + "|";
}
}
获取iFrame的所有
1234567891011
function GetAllIframeItem() {
document.getElementById("hid_LogInfo").value = "";
var a = document.getElementById("Iframe3").contentWindow;
var all = "";
var mytds =a.document.getElementsByTagName("td");
for (var i = 0; i < a.document.getElementsByTagName("td").length; i++) {
document.getElementById("hid_LogInfo").value += a.document.getElementsByTagName("td")[i].innerText + ",";
}
alert(document.getElementById("hid_LogInfo").value);
return false;
}