Tag Archives: JavaScript

Drag and Drop with External Files in HTML5 and JavaScript

The JavaScript code below, when run, allows the user to drag and drop image files onto a box, upon which the image and its file name will be displayed. To see it in action, copy it into an .html file … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Exploring the ISO File Format in JavaScript

The JavaScript code below allows the user to specify a file in .ISO format, and displays the structure and contents of that file as text. To see it in action, copy it into an .html file and open it in … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

A Key Sequence Recorder in JavaScript

The JavaScript code below implements a key sequence recorder in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. When the Record button is clicked, the … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

A Scrolling Map Tile Engine in JavaScript

The JavaScript below implements a simple engine for allowing an animated character to move around a map made of tiles. To see it in action, copy it into an .html file and open that file in a web browser that … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

A Brick-Breaking Game in JavaScript

Below is a simple brick-breaking game implemented in JavaScript. Its gameplay is similar to the classic games Breakout and Arkanoid. To see it in action, copy it into an .html file and open that file in a web browser that … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

An Asteroids Clone in JavaScript

Below is a simple clone of the classic video game Asteroids implemented in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. UPDATE 2018/01/06 – This … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A Retirement Savings Calculator in JavaScript

The JavaScript program below, when run, allows a user to calculate how many years it will take to save enough to replace their salary based on the specified initial savings, savings per year, and rates of return before and after … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment