if (confirm("Are you sure you want to delete this element?")) { console.log('confirmed') }. Download my free JavaScript Beginner's Handbook ...
確定! 回上一頁