+ 2
How to make a dragable button
Button
2 Respuestas
+ 2
you need JavaScript to do that...
it's something like this:
function dragButton ()
{
X = pageX;
Y = pageY;
document.querySelector ("button").style.marginTop = Y;
document.querySelector ("button").style.marginLeft = X;
}
+ 2
thanks for the mark😊
btw if this is solves your problem, you could add [SOLVED] at the start of your question😅