const form = document.querySelector('form'); const tableBody = document.querySelector('table tbody'); const clienteInput = document.getElementById('cliente'); const dataInput = document.getElementById('data'); const importoInput = document.getElementById('importo'); const aggiungiButton = document.getElementById('aggiungi'); let fatture = []; aggiungiButton.addEventListener('click', (e) => { e.preventDefault(); const cliente = clienteInput.value; const data = dataInput.value; const importo = importoInput.value; if (cliente && data && importo) { const fattura = { cliente, data, importo }; fatture.push(fattura); aggiornaTabella(); form.reset(); } }); function aggiornaTabella() { tableBody.innerHTML = ''; fatture.forEach((fattura, index) => { const row = document.createElement('tr'); const clienteCell = document.createElement('td'); const dataCell = document.createElement('td'); const importoCell = document.createElement('td'); const azioniCell = document.createElement('

Cloud VPS Server