Des choses trouvées sur le net - Warrior du Dimanche
mercredi 30 septembre 2020 à 15:34Tien, j'ai fait légèrement différamment :
dropZone.ondragover = function () { this.className = 'hover'; return false; };
dropZone.ondragend = function () { this.className = ''; return false; };
dropZone.ondrop = function (e) {
this.className = '';
e.preventDefault();
read(e.dataTransfer.files);
};
https://github.com/Oros42/tiny_DnDUp/blob/master/index.php#L347
— Permalink