MISCELLANEOUS - JavaScript Codes
Description This code provides the user with the option to provide Anti Filter Sample colour to the desired Website. Source Code <body style="text-align: center" bgcolor="#00000 ...

Description This program shows Fireworks being created. Source Code <body bgcolor='#000000' > <script language="JavaScript"> CL=new Array('#ff0000','#00ff00','#fffff ...

Description This program invokes the printer on click of a button. Source Code <SCRIPT LANGUAGE="JavaScript"> if (window.print) { document.write('<form> ' + '<input type ...

Description This code calculates the amount of time taken to work in a group. Source Code <HEAD> <!-- Begin function groupWork() { person1 = parseInt(document.workform.person1. ...

Description This program shows a menu from which we can select items and any click on them opens a new link. Source Code <STYLE TYPE="text/css"> </STYLE> & ...

Description This code shows the Time of various important Cities of the World. Source Code <html> <head> <meta http-equiv="Content-Language" content="en-us&qu ...

Description This code shows a Button,by clicking on it the Background colour Blinks. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function b ...

Description This code shakes the internet explorer's window. Source Code <meta http-equiv="Content-Language" content="en-us"> <SCRIPT language=JavaScript> < ...

Description This program shows google search engine being displayed on the window. Source Code <center> <FORM method=GET action="http://www.google.com/search"> <TABLE b ...

Description This code calculates the volume as well as surface area of cylinders etc. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function f ...

Description This code Disables the Enter Key in Forms until it is completely filled out. Source Code <script language=javascript type=text/javascript> function stopRKey(evt) { var evt ...

Description This code displays your link description in the Status Bar of your Browser. When the mouse is placed over a link, the link description will be viewed in the status bar. Source Code < ...

Description This code helps user to View Source of a page using a Button. Source Code <form> <input type="button" value="View Source" onClick= 'window.location = &q ...

Description This code enables visitors to click on an image to be taken back to the previous page they were on. Source Code <A HREF="javascript: history.go(-1)"><IMG BORDER=&qu ...

Description This code helps the user to make a Website,his/her Homepage :using Buttons. Source Code <FORM> <INPUT TYPE="button" VALUE="Make This Site Your Home Page" ...

Description This code opens the desired Pop up window on first visit to the page. Source Code <SCRIPT LANGUAGE="JavaScript"> function GetCookie(name) { var arg=name+"=&q ...

Description This is a code which shows the 3-D image of Merlin which also speaks. Source Code <OBJECT id=wolfi classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F>></OBJECT> < ...

Description This code Redirects the user to a new page. Source Code <SCRIPT LANGUAGE="JavaScript"> window.location="http://www.yfrindia.com/"; // --> </script ...

Description This code types the Status Bar text as per user's choice. Source Code <SCRIPT language="JavaScript"> var current = 0 var x = 0 var speed = 100 var speed2 = 10 ...

Description This code shows Two Intersecting Lines which Follow the mouse from their Intersecting point. Source Code <!-- START OF Mouse Cursor Crosshairs DHTML --> <!-- SUMMARY BRI ...

Description This code opens a Gateway window when clicked onto a button. Source Code <HEAD> <SCRIPT LANGUAGE="javascript"> <!-- Begin var nifty_little_win ...

Description This is a program in which movement of Mouse controls the movement of String made up of Heart shaped figure. Source Code <div id="dot0" style="position: absol ...

Description This code Displays a Monthly Calendar which Highlights the Current Date. Source Code <!-- 1. Put the code into the BODY of your HTML document --> <!-- STEP ONE: Copy thi ...

Description This code Displays a drop down list of almost all Search Engines which can search any item on Internet. Source Code <HEAD> <style type="text/css"> td {color ...

Description This shows a clock with hour,minute and second hand as well. Source Code </SCRIPT> <SCRIPT language=JavaScript> fCol='444444'; //face colour. sCol='FF0000'; //secon ...

Description This code shows Multiple Effects on a Text written on the web page. Source Code <HTML><HEAD> <meta http-equiv="Content-Language" content="en-us"> ...

Description This code provides the user with a word or phrase to type and then gives the time taken by the user. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> &l ...

Description This code Switches the Background Music i.e. ON or OFF. Source Code <BODY> <script> musi="1mid.mp3" function mus1() { if (t.options.selectedIndex== ...

Description This code will allow you to put a link on your page that when clicked will add a URL to the user's Favorites. Source Code <html> <head> <meta http-equiv=&q ...

Description This code Hides or Shows the writing layers of the text on the page. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var ie4 = (documen ...

Description This code shows a Box which engulps the text shown. Source Code <HEAD> <script> <!-- var href; function showBlackHole(){ var obj = document.g ...

Description This code will Display Colourful Exploding Stars on Webpage. Source Code <body> <script LANGUAGE="JavaScript1.2"> <!-- //set Interval between each fi ...

Description This code converts the frequency from Beats per Minute to Hertz and vice versa. Source Code <BODY> <center> <form> <table border=0> <tr> < ...

Description This code checks whether a number is Prime or not. Source Code <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function calculate(form) { var num=parse ...

Description This code Displays a Colour Cube from which the user can choose any colour. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!--//Heres the code ...

Description This code calculates all the Atmospheric constraints. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function setEUnits() { var ...

Description This code shows a Box which is attached to the Mouse and it moves with Mouse movement and also displays a message. Source Code <SCRIPT language="JavaScript"> ...

Description This code displays an Analog clock which also displays Date following Movement of Mouse. Source Code <!--END CODE - Powered java script code by <span lang="en-us">< ...

Description This code accepts a word from the user and displays a sentence with that word used in it. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin ...

Description This code provides all the basic information about armors such as its range,penetration etc. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- ...



