TableID.Rows [0] .cells [0] .innerhtml = "i love javascript!"; document.getElementByid (vel) .INnertext = T1.Value; parent.document.all ("ifrmaddexam"). Style Parent.frames "Table_index"). TBLADDEXAM.Style.pixelleft = 0; Parent.frames ("Table_index"). location.href = "pp.php"; Document.frames ("ifrmaddexam"). ExamDate.Value
Outehtml
For a paragraph: / ******************************************* Dynamically added, delete row function * When calling, you need to create a table and as a template. * Jianyi0115 2004 7 16 * Note: After History.back () returns, the new line will disappear * IE6 test via **** *********************************************** /
/ *********************** * Add line (specified line specified by the specified table Table as a template line to dynamically increase .
* @ param TableID String Table ID, * @ param RowIndex INT template line index, it is best to hide the template line, because the new row fully replicates the templancular line content *** / function addrow (TableID, RowIndex) {ix (TableID ) == "undefined") {alert ("TableID)"); return;} == "undefined") RowIndex = 1; var tableid = Document.GtelementByid ( TableID; if (TableObj.tagname! = "Table") {Alert ("Object Not Table"); Return;} Var Colscount = Tableobj.Rows (RowIndex) .Cells.Length; IF (Colscount <1) {Alert "Table object has no cell!"); Return;} var rowscount = tableobj.Rows.Length; if (RowIndex> (ROWSCOUNT 1)) {Alert ("index beyond range!"); Return;} var lastid = tableobj .ROWS (Tableobj.Rows.Length - 1) .id; var trid = TableID "_"; if (RowsCount <= 2) Trid = "1"; Else {Last = LastId.Split ("_"); Lastnum = last [1]; Trid = (1 parseint (lastnum));} // Alert (TRID); tableobj.InSertrow (); tableobj.Rows (Tableobj.Rows.Length - 1) .id = trid; RowsCount = Tableobj.Rows.Length; for i = 0; i