Skip to main content

JavaScript Source Code

Free JavaScript Source Code. Download 10 latest JavaScript with source code for free here.

Digital Clock Using Jquery

In this tutorial I am going to teach how on to create a digital clock that you can use in your systems or project. Just download the source code below for basis. and follow the instructions. DIRECTIONS INCLUDE THIS LINK IN YOUR HEAD TAG CSS CODE body{ background:#f5f5f5; font:bold 12px Arial, Helvetica, sans-serif; margin:0; padding:0; min-width:960px; color:#000; } a { text-decoration:none; color

Simple Tic Tac Toe Game in Javascript

In this project we are going to learn how to create tic-tac-toe game in javascript. This will entertain you and your visitors from your website. Here's the complete javascript code for this game. Have Fun! TIC TAC TOE GAME if (document.all||document.getElementById){ document.write('.tictac{') document.write('width:50px;height:50px;') document.write('}') } var sqr1 var sqr2 var sqr3 var sqr4 var

Disable Copy and Paste using Javascript

In this project we are going to learn how to disable copy and paste. You can't prevent stealing your content but you can make it more difficult for people to copy the contents of your website. Here's a script that will disable Copy and Paste. //disable mouse drag select start document.onselectstart = new Function('return false'); function dMDown(e) { return false; } function dOClick() { return

Characters Restriction using javascript

In this project we are going to learn on how to disable characters in input field using javascript. The only allowed characters in this project are "01234567890.". If you want to enable or change some characters find this code // var validList = "0123456789."; for character restriction. Input Characters Restriction input{padding:5px; border:1px solid #888;} // Retrieve last key pressed. Works in

Drag and Drop using Javascript

In this tutorial, we are going to learn how to the image into the box using javascript. This is a simple project that you can use in your website or system. DIRECTIONS HTML CODE Drag Image into the squares using HTML5 JAVASCRIPT CODE function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("text", ev.target.id); } function drop(ev) { ev.preventDefault(); var data

Dialogs and Notification Logs using Jquery

In this tutorial, we are going to learn about dialogs and notification logs using jquery. You can use this in your systems or projects. just download the source code. Instructions Link the css and js scipts Writing the javascript code function reset () { $("#toggleCSS").attr("href", "../themes/alertify.bootstrap.css"); alertify.set({ labels : { ok : "OK", cancel : "Cancel" }, delay : 5000

Drag and Drop Shopping Cart using JQuery

In this project you are going to learn drag and drop feature in shopping cart using JQuery. This Drag and Drop Shopping Cart feature can be useful to your website or project. Source Code: Shopping Cart h1 { padding: .2em; margin: 0; } #products { float:left; width: 400px; margin-right: 2em; } #cart { width: 230px; float: left; margin-top: 1em; } /* style the list to maximize the droppable hitarea