Skip to content

Instantly share code, notes, and snippets.

View MrCordeiro's full-sized avatar
:shipit:
In a love-hate relationship with white spaces

Fernando MrCordeiro

:shipit:
In a love-hate relationship with white spaces
View GitHub Profile
@MrCordeiro
MrCordeiro / remove-last-row-from-table.html
Created March 2, 2020 15:50 — forked from rootbear/remove-last-row-from-table.html
Javascript: Remove Last Row from Table
<html>
<head>
<title>remove last row from a table</title>
<script language="JavaScript" type="text/javascript">
<!--
var rws;
function RemoveRow(obj){
obj=document.getElementById(obj);
rws=obj.getElementsByTagName('TR');
obj.removeChild(rws[rws.length-1]);