+ 2

How to make a dragable button

Button

27th Aug 2020, 8:49 PM
Goodnews
Goodnews - avatar
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; }
28th Aug 2020, 4:13 AM
Bot
Bot - avatar
+ 2
thanks for the mark😊 btw if this is solves your problem, you could add [SOLVED] at the start of your question😅
30th Aug 2020, 1:55 PM
Bot
Bot - avatar