//像表格中插入一行。
1.
function fucInsert(){
var oRow = document.all.tables.insertRow();
oRow.insertCell(0).innerText = 0;
oRow.insertCell(1).innerText = 1;
oRow.insertCell(2).innerText = 2;
oRow.insertCell(3).innerText =3;
oRow.cells[0].noWrap = true;
oRow.cells[1].noWrap = true;
oRow.cells[2].noWrap = true;
oRow.cells[3].noWrap = true;
}
2.关闭WEB窗体:(1). onclick="javascript:parent.window.close();"
(2). if(confirm("你确定要退出吗?"))
parent.window.close();
else
return false;
3.打开WEB窗体并且控制位置:var opener = window.open("/ba/accept_search/index.jsp","_blank");
opener.moveTo(-4,-4);
opener.resizeTo(screen.Width+9, screen.Height-20);
////////////////////////////////
var retuValue=window.showModalDialog("/am/invoicebatch/alert.htm",window,sFeatures);
if(retuValue==undefined) return;
4.在表格中插入值:
document.all.tables.rows(0).cells(0).innerHTML = " <font color='#993300'>"+1+"</font>条,";
5.调出打印机: document.execCommand("Print", true);
6。Var test=null;
test=window.prompt("请输入处理结果信息:");