I'd like to know how I could activate a piece of code (perhaps start a timer) using a button or hyperlink. I tried using a function or onclick in a href but I couldn't get that working.
<a href="?start=true" onclick=myFunction()>Start</a>
I tried the above, and I searched around, but no one seemed to have my specific answer. I probably did a lot of mess ups in the code, but I'm taking a shot in the dark. Hey, at least I tried something :\ Sorry if I seem like a complete idiot. I do that a lot.
?start=true
Just doesn't seem too correct to me, but I barely use that sort of user-query thing, so I'm very unfamiliar. Any help is appreciated! For clarification: I want it to start a timer and the person has a certain amount of time to click an answer. Like a minigame, only PHP & HTML.