Javascript Text Script Snippets


How to add jQuery and Snippet to your HTML document

The JavaScript is just a function called redirect, and is requesting that a variable be passed to it.

20 August, 2015   

Basic setup code for jQuery, linking to Google APIs for the jQuery library.

Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:

17 December, 2012   

Example code for Add javascript in VB.Net and C#

27 August, 2011   

The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting. The noscript element can contain all the elements that you can find inside the body element of a normal HTML page. The content inside the noscript element will...

28 January, 2012   

This loop will starts with 0 and will continue As long as i less than, or equal to 5

22 August, 2012   

This JavaScript code will enable you to display text within your status bar that is typed line by line.

An example of Strict Textmate Template

Note: The ASP.Net RadioButtons must be set with exact same GroupName property in order to make them mutually exclusive.

09 July, 2013   

Copy selected text by allowing user to simply click a button

23 March, 2011   

Are you looking for an easy way to launch an alert box on mouse over? This script will do just that. This JavaScript provides an easy way to alert your visitors. However, please ensure you use this script cautiously, as you certainly don't want to irritate your visitors and cause them to leave your web site.

23 May, 2011   

Are you looking for an easy way to launch an alert box on mouse over? This script will do just that. This JavaScript provides an easy way to alert your visitors. However, please ensure you use this script cautiously, as you certainly don't want to irritate your visitors and cause them to leave your web site.

06 March, 2012   

An example code for JavaScript Jump Menu

02 February, 2011   

Basic Alert

14 July, 2014   

A few points of interest: * The HREF links use JavaScript to set a browser cookie named "style". * Since we are only setting one cookie and it's name is "style", we can read its value using "document.cookie.charAt(6)". * If no cookie is set, "StyleFile" will evaluate to "style.css". * The...

An example code using jQuery Auto Image Scroller

06 March, 2012   

An example code for JavaScript Random Quotes

Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you may use the code below: It works in IE, FireFox and Opera. Clicking on the link prompts...

25 April, 2011   

HTML5 starting point template. Used in conjunction with HTML5 CSS reset at the above link.