Menu
Easy Java Script Code

Password Protection Using the Frames Method
One method of password protecting your webpages is to use a cookie, but cookies are unreliable. If you can't trust a cookie to store the information that the user is logged in, where can you store it? In this example I'll show you how to use frames for JavaScript password security. More ...

Easy Picture Zoom Code
This article provides the minimal code for four different methods to add zoom to the pictures on your Web page. The first method uses a single image. When you click on the image a JavaScript function is used to enlarge the image. More ...

How to Place Image on HTML5 Canvas
The canvas element is a webpage container for graphics. You can use JavaScript to draw graphics within the canvas element. In this article to learn how to place an image on a canvas with example code. More ...

JavaScript Code for Binary to Hexadecimal - Hexadecimal to Binary Conversion
You don't really need JavaScript to convert a binary number to a hexadecimal number, however if you want to create a web application the JavaScript code to convert a binary number to hexadecimal number and to convert a hexadecimal number to a binary number is shown below. More ...

JavaScript Cookbook
JavaScript Cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any browser. Just copy and paste the code samples into your project. More ...

JavaScript to Copy and Paste Text to the Clipboard
In some applications, rather than the user's selection, you may want to copy the contents of a specific html element to the clip board. Or when the user initiates a Paste, you may want to direct the contents of the user's clipboard to a specific html element on the webpage. Here is the code for this. More ...

Introduction to HTML5 Canvas
The canvas element is a webpage container for graphics. You can use JavaScript to draw graphics within the canvas element. Learn how to draw lines, rectangles, circles, and curves, code included. More ...

Creating Java Script Dynamic or anonymous Functions at Runtime
In Java Script you can code a function at design time, or you can have Java Script write the function code during execution. A function that is created at runtime is called an anonymous or dynamic function. More ...

Java Script Code to Re-arrange Items in a Select List
In this article you'll learn how to use Java Script to re-arrange items in a select list. I'll explain the code in detail so that you'll be able to fully understand and modify it for your own use. More ...

Java Script Code for Directory File List
In this article You'll learn how to create a webpage that gives a list of the files in a folder. This example is for use with Internet Explorer Web browser on your local computer. More ...

Using the Java Script Array Object
When you want to work with multiple related values, you can use the Array object. The new keyword is required when creating an array of object type data, like an array of string objects. The new keyword is not required when creating an array of simple variable types, like integers. In this article you learn about mutidimensional arrays, and study examples of how to use each Array Object method. More ...

JavaScript to Replace All Occurrences of a Substring Within a String
If you have a string with multiple occurrences of a substring within and you want to replace every occurrence of that substring with a different substring, this article provides a simple code example. More ...


Learn more at amazon.com

Custom Search