File size: 487 Bytes
c530d16 06738ae c530d16 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// scripts.js
document.addEventListener('DOMContentLoaded', function () {
const uploadButton = document.getElementById('upload-button');
uploadButton.addEventListener('click', function () {
const fileInput = document.getElementById('file-upload');
if (fileInput.files.length > 0) {
alert('فایل با موفقیت بارگذاری شد!');
} else {
alert('لطفاً یک فایل انتخاب کنید.');
}
});
});
|