You are here: Code Snippets
LastNext21Page 1 of 2Record 1 to 10 of 12

Code Snippets

Favourite
VOTE 0

JavaScript Function getElementByClassName | JavaScript

Code Snippet » By Si Thu On Feb 07, 2012 10:02:16 PM ,

This is one of the useful function in my code bank. This function can be used to find the elements by css class name. If you don't use jQuery, it will be definitely helpful for you.

Favourite
VOTE 0

Loading External Javascript File Dynamically | JavaScript

Code Snippet » By Blue Cloud On Jan 18, 2012 8:04:40 AM ,

This can be used to load a javascript file dynamically.

Favourite
VOTE 0

Getting Current Domain Name | JavaScript

Code Snippet » By Blue Cloud On Jan 03, 2012 8:06:47 AM ,

To get current domain name of the page.

Favourite
VOTE 0

Get URL Parameter with JavaScript | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:27:50 PM ,

This is a JavaScript that helps you to get the URL Parameters of a page.

Favourite
VOTE 0

Watermark TextBox | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:23:46 PM ,

When textbox is empty, it show the watermarked text. When it get focus the watermarked text disappears. When it lost focus the watermarked text appears if there is no text.

Favourite
VOTE 0

Get All the Input Elements of the Page | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:13:35 PM ,

Easiest way to retrieve all the input elements within a page.

Favourite
VOTE 0

Select All Text of Textbox or TextArea When On Click | JavaScript

Code Snippet » By Blue Cloud On Dec 31, 2011 11:51:16 PM ,

This script highlight/select all text of textarea or text field when on click.

Favourite
VOTE 0

Create and Store a Cookie | JavaScript

Code Snippet » By Blue Cloud On Dec 23, 2011 8:14:51 PM ,

Cookie is a small text file that's stored in user's browser. They're mostly used for storing user preferences. It save the data with name-value pair format. Following function can be used to create and retrieve cookie values.

Favourite
VOTE 0

Check/Uncheck All the CheckBoxes of Given Element | JavaScript

Code Snippet » By Blue Cloud On Dec 22, 2011 7:20:14 AM ,

This javascript function can find all the checkboxes in given container and change the checked state.

Favourite
VOTE 0

Go Back or Forward in Browser Navigation History | JavaScript

Code Snippet » By Blue Cloud On Dec 21, 2011 7:55:38 AM ,

Using JavaScript you can go back or forward in the browser's navigation history.

LastNext21Page 1 of 2Record 1 to 10 of 12