I'd still use a form but use the forms hidden fields. Then control the form submit using javascript.
Using a form doesn't mean it has to be used for user data entry. I've used a few hidden forms on the same page for controlling hidden data. The user doesn't even know its there. Sometimes it just makes life easy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.