Tip: Use the clearTimeout() method to prevent the function from running. Play against the computer. This tutorial demonstrates how to perform chroma-keying (also known as the "green screen effect") using JavaScript code. Simple Java Script Games all codes with examples. and some CSS. Part of the HTML5 spec, the HTMLMediaElement API provides features to allow you to control video and audio players programmatically — for example HTMLMediaElement.play(), HTMLMediaElement.pause(), etc.This interface is available to both