HTML and CSS Reference
In-Depth Information
Code
Explanation
}
else {
document.f.out
.value = "WRONG";
elementinmotion.
style.backgroundColor = "white";
}
}
else {
makingmove = true;
elementinmotion = this;
elementinmotion.style.
backgroundColor = "tan";
Set first block color to tan
}
}
</script>
</head>
<body onLoad="init();">
<h1>G20 Countries and capitals </h1><br/>
Click on country or capital and then
click on corresponding capital or country.
<p>
Reload for new game.
<form name="f" >
Search WWH ::




Custom Search