HTML

Automatically Convert String to Upper Case in Javascript

Submitted by GeePee on
This project will teach you how to convert string to upper case automatically using javascript. We can use these if we have a textfield requirements to capitalized all inputted data or just the first letter of the word. It is more convenient for the users while inputting data at the same time we can make sure that it meets system requirements. Hope you learn from this.

Validate Decimal Number in Javascript

Submitted by GeePee on
This project will teach you how to validate decimal number in javascript. It is important to validate first the input data before submitting. The user must meet the requirements to be able to proceed with the next procedure. There are textfield which requires numbers only, so we have to block the non-numeric characters to avoid errors. Hope you learn from this.

setAttribute/removeAttribute in Javascript

Submitted by GeePee on
This project will teach you how to use setAttribute and removeAttribute method in javascript. setAttribute adds an attribute to a specified element and give it a value. Like in my example, I add an attribute of class and the value is animate which I give an animation. So, by pressing the setAttribute button, the element starts to animate and by clicking removeAttribute, the animation stops

Shadow Effect on Canvas Element in Javascript

Submitted by GeePee on
This project will teach you how to create a shadow effect on canvas element using javascript. You have the option to set the shadow whether what position you set them in(if the shadow x position is on left side, that is negative number and right side is positive number. The same with y position, if the shadow is on the upper side, that is negative number and bottom is positive number. The positive

Clipping in CSS

Submitted by GeePee on
This project will teach you how to use clip-path property in css. Clipping or clip-path property allows you to display a portion of an image inside the path or a shape. We can create different shape like, rectangle, circle and polygon but I have here an example of circle and polygon. It is easy program. Try it yourself. Hope you learn from this.

Detecting Unsaved Work in Javascript

Submitted by GeePee on
This project will teach you how to trap your user with an unsaved work. It has only few lines of code in javascript. If the user has unsaved work and application that is not completed and attempt to close the window, the pop up message will appear asking if you want to leave the page or stay on the page. Simple yet very useful. Hope you learn from this.