Files
intecsync/uebung3/tabellenmanipulation.html
2019-05-19 14:31:54 +02:00

39 lines
1.1 KiB
HTML

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Tabellenmanipulation</title>
<style>
table {
margin-left: auto;
margin-right: auto;
}
table, th, td {
border: 1px solid black;
}
p {
text-align: center;
}
</style>
</head>
<body>
<button id="inscol" onclick="inscolumn()">Spalte hinzufügen</button>
<button id="delcol" onclick="delcolumn()">Spalte entfernen</button>
<button id="insrow" onclick="insrow()">Zeile hinzufügen</button>
<button id="delrow" onclick="delrow()">Zeile entfernen</button>
<p id="dimension"></p>
<table id="table"></table>
<script>
let table = document.getElementById("table");
let colcount = 0;
let rowcount = 0;
function inscolumn() {
colcount += 1;
}
</script>
</body>
</html>