<input type="text" value="Changez moi de place" draggable="true" /><br>
<input type="text" ondragover="deplace()" /><br>
<br>
<p>Déplacement dans une zone de déplacement valide (ondragover) : <span id="info3"></span></p>


span{
  color:red; 
}
p{
  margin: 0;padding: 0;
}
input{
  color:green
}
bol=false;

function deplace(){
  bol = !bol; 
  if(bol){document.getElementById('info3').innerHTML+=' .'
         }else{
    document.getElementById('info3').innerHTML+=''}
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.