Menu
Easy Java Script Code

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 ...

Java Script to Dynamically Add, Remove, and Change Items in a Select List
This article shows you how to use Java Script to add, remove, and change items in a select list. 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 ...

Easy Code for Animated Banner - Squeeze Text
Using JavaScript along with CSS allows us to create some fun and interesting animations. One of the easiest things to create is an animated banner. In this article I'll show you how to use JavaScript and CSS to create an animated banner that squeezes text and which you can easily customize for your own use. More ...

Code to Drag and Drop an Image Anywhere on a Webpage
HTML5's drag-and-drop standard is designed to let you drag text or data from a textbox or table cell, to another textbox or table cell. But what if you want to drag an image, not to a target element, but to anywhere on a webpage. Then HTML5 drag-and-drop falls short. More ...

HTML5 Canvas JavaScript Code to a Draw Bezier Curve
The HTML5 canvas element allows you to, when you don't need an extremely complex image, not require your webpage to load an image file, but instead to use JavaScript to the draw the graphics on your webpage. More ...

Prevent Automated Form Submissions With Java Script
Spammers have robots that search the Web for such forms and when they find one, they use automated programs to submit thousands of spam. Webmasters have developed a method to prevent such abuse. In this article, I show you three different examples of using Java Script to implement this method for your own web form. More ...

Slide Show with Different Size Images
In this article, I explain how to code a slide show that can display different size images without growing and shrinking your web page. I'll explain it in detail so that you can understand and feel comfortable using the code, then you can cut and paste the code into your webpage and modify it for your purposes. More ...

Java Script to Get Selected Item from Select List Option Group
Since you may have identically named items in multiple optgroups, you need to a way to get the name of the optgroup as well as the name of the option. The code in this article shows you how. More ...

Regular Expressions Lookarounds
In this article you learn how to match a pattern only when it comes after another pattern (or after not that pattern) or only when it comes before another pattern (or before not that pattern). More ...

How to Use HTML5 canvas arc and arcTo Functions
This article describes how to draw arcs using the canvas arc and arcTo functions with example code and an explanation of radians. More ...

Synchronous and Asynchronous Script Loading
Whether to use synchronous or asynchronous script loading depends upon the design of the webpage. Asynchronous script loading can cause the webpage can render more quickly. But if done without consideration for the design it can cause webpage flash or even errors. More ...


Learn more at amazon.com

Custom Search