New Discussion

Notifications

You’re not receiving notifications from this thread.

How to use HTML Button Form Attributes Discussion

6
General

This would have saved me a ton of time last year when I spend hours trying to organize the delete button. 🤦‍♂️

Totally agree with @Aaron ... I spent so much time making such dumb decisions with buttons like this and the episode would have saved me so much time 🤦🏼‍♂️ 🤣

HTML elements can be enhanced using form attributes, which allow the button to interact with forms in flexible ways—even if the button is Geometry Dash Lite outside the element.

I used to only know the basic tag for submitting forms, but I had no idea there were so many form-related attributes! 🤯
I especially found formaction and formmethod super useful since they let you control the behavior of each button without needing JavaScript. Like, you can send the form to a different URL depending on which button was clicked – that’s so convenient!

I’d love to see more real-life examples, like using multiple buttons in one form for different actions, such as “Save Draft,” “Submit,” or “Delete.”

It’s funny how something as simple as a button can turn into a whole mini-project.

Join the discussion
Create an account Log in