Code:
<!-- begin snippet: js hide: false -->
<!-- language: lang-js -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Children Film and TV Quiz</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<center>
<button onclick="myFunction()">Restart Quiz</button>
</center>
<script>
function myFunction() {
location.reload();
}
</script>
</body>
</html>
<!-- end snippet -->
< script >
var quiztitle = "Childrens Film and TV Quiz";
var quiz = [{
"question": "Who is this?",
"image": "boo.jpg",
"choices": [
"James P. Sullivan",
"Mike Wazowski",
"Boo",
"Randall Boggs"
],
"correct": "Boo",
}, {
"question": "What is the name of The Lion from The Chronicles of Narnia: The Lion, the Witch and the Wardrobe?",
"choices": [
"Peter",
"Edmund",
"MR.Tumnus",
"Aslan"
],
"correct": "Aslan",
}, {
"question": "Who is this from Toy Story?",
"image": "woody.jpg",
"choices": [
"Buzz Lightyear",
"Woody",
"Slinky Dog",
"Rex"
],
"correct": "Woody",
}, {
"question": "In waht house did the sorting hat almost put Harry Potter in?",
"choices": [
"Slytherin",
"Hufflepuff",
"Gryffindor",
"Ravenclaw"
],
"correct": "Slytherin",
}, {
"question": "Whitch fish from finding nemo has memory loss?",
"choices": [
"Nemo",
"Gill",
"Dory",
"Peach"
],
"correct": "Dory",
}, {
"question": "What does spongebobs house look like?",
"choices": [
"Rock",
"House shaped like an Easter Island head (Moai head)",
"Anchor",
"Pineapple"
],
"correct": "Pineapple",
}, {
"question": "Which Simpsopns charictore is missing?",
"image": "missing from simpsons family.jpg",
"choices": [
"Bart",
"Marge",
"Homer",
"Lisa"
],
"correct": "Bart",
}, {
"question": "Who says let's split up gang in Scooby Doo?",
"choices": [
"Fred",
"Daphne",
"Shaggy",
"Velma"
],
"correct": "Fred",
}, {
"question": "What is the colour of the blue peter badge?",
"choices": [
"Red and green ",
"Purple and Silver",
"Orange and Gold",
"Blue and White"
],
"correct": "Blue and White",
}, {
"question": "What cartoon character is famous for saying what's up duck?",
"choices": [
"Mickey Mouse",
"Fred Flintstone",
"Bugs Bunny",
"Tom and Jerry"
],
"correct": "Bugs Bunny",
}, ];
Bookmarks