send the user to quiz page after he click on submit button

well how can i send the user to the quiz page (html or css or javascript) according to his select from the dropdown list in the menu, I mean when he click on submit button ??
1 Reply
Kuba
Kuba2y ago
You could add an event listener to a button, and modify the window.location.href attribute Mind you that href has to be supplied with a full URL. Assumming that your page is "http://example.com" and the quiz is at "http://example.com/quiz/<someId>" you could do: window.location.href = window.location.origin/quiz/${quizId}
Want results from more Discord servers?
Add your server