Page 1 of 1

other thing can you show me how can i make it go to different pages like I answer on question click and goes yo the next

Posted: Mon Jul 11, 2022 9:50 am
by answerhappygod
other thing can you show me how can i make it go to different pages like I answer on question click and goes yo the next one
<!DOCTYPE HTML><html><head> <title>Quiz</title> <style> body { background-color: aqua; } </style></head><body> Q1. What is 2+3?<br> <input type="radio" name="question1" id="correct1"> 5<br> <input type="radio" name="question1" > 8<br> <input type="radio" name="question1" > 11<br> <input type="radio" name="question1" > 27<br> Q2. where is paris located?<br> <input type="radio" name="question2" > Italy<br> <input type="radio" name="question2" id="correct2"> France<br> <input type="radio" name="question2" > Brazil<br> <input type="radio" name="question2" > Japan<br> Q3. who was albert einstein?<br> <input type="radio" name="question3" > a Pilot<br> <input type="radio" name="question3" > a Boxer<br> <input type="radio" name="question3" id="correct3"> a Physicist<br> <input type="radio" name="question3" > a cooker<br> Q4. what is the national anthem of Ireland?<br> <input type="radio" name="question4" id="correct4"> The Soldier's Song<br> <input type="radio" name="question4" > The Star-Spangled Banner<br> <input type="radio" name="question4" > God Save the Queen<br> <input type="radio" name="question4" > His Imperial Majesty's Reign<br> <br> <input type="submit" name="submit" value="submitQuiz" onclick="result()"> <script type="text/javascript"> function result() { // body... var score=0; if (document.getElementById('correct1').checked) { score++; } if (document.getElementsByid('correct2').checked) { score++; } if (document.getElementsByid('correct3').checked) { score++; } if (document.getElementsByid('correct4').checked) { score++; } alert("Your score is:"+score); }</script></body></html>
<!DOCTYPE HTML>
<html>
<head>
<title>Quiz</title>
<style>
body {
background-color: aqua;
}
</style>
</head>
<body>
Q1. What is 2+3?<br>
<input type="radio" name="question1" id="correct1"> 5<br>
<input type="radio" name="question1" > 8<br>
<input type="radio" name="question1" > 11<br>
<input type="radio" name="question1" > 27<br>
Q2. where is paris located?<br>
<input type="radio" name="question2" > Italy<br>
<input type="radio" name="question2" id="correct2"> France<br>
<input type="radio" name="question2" > Brazil<br>
<input type="radio" name="question2" > Japan<br>
Q3. who was albert einstein?<br>
<input type="radio" name="question3" > a Pilot<br>
<input type="radio" name="question3" > a Boxer<br>
<input type="radio" name="question3" id="correct3"> a Physicist<br>
<input type="radio" name="question3" > a cooker<br>
Q4. what is the national anthem of Ireland?<br>
<input type="radio" name="question4" id="correct4"> The Soldier's Song<br>
<input type="radio" name="question4" > The Star-Spangled Banner<br>
<input type="radio" name="question4" > God Save the Queen<br>
<input type="radio" name="question4" > His Imperial Majesty's Reign<br>
<br>
<input type="submit" name="submit" value="submitQuiz"
onclick="result()">
<script type="text/javascript">
function result() {
// body...
var score=0;
if (document.getElementById('correct1').checked)
{
score++;
}
if (document.getElementsByid('correct2').checked)
{
score++;
}
if (document.getElementsByid('correct3').checked)
{
score++;
}
if (document.getElementsByid('correct4').checked)
{
score++;
}
alert("Your score is:"+score);
}
</script>
</body>
</html>
Other Thing Can You Show Me How Can I Make It Go To Different Pages Like I Answer On Question Click And Goes Yo The Next 1
Other Thing Can You Show Me How Can I Make It Go To Different Pages Like I Answer On Question Click And Goes Yo The Next 1 (22.24 KiB) Viewed 48 times
quiz html css javascript-Yo Gmail YouTube Q1. What is 2+37 5 Of 0.11 O 27 Q2. where in paris located? Italy France ● Brazil Q3, who was albert einstein a Pilot a Boxer Esc Physicist O a cooker Q4. what is the national anthem of Ireland The Soldier's Song sub-Qu x FI C:/Users/35383/Desktop/index.html The Ste-Spangled Bar God Save the Queen His Imperial Mainty's Kris Translate Maps F2 Type here to search F3 F4 HI Ghow many FasComicOnline F5 F6