SQL PHP HTML ASP JavaScript articles and free scripts to download

JavaScript string functions

JavaScript has many string functions to manage our scripts. We will discuss more about these functions with examples here.

We can use them along with many other different function to get our desired output. Here are some of them .
Element / Functions Description
String ObjectHow to declare a string object and use its properties with examples.
toUpperCaseWe can convert any text or string from Lower case to Upper Case text by using this function.
toLowerCaseConvert Upper case text to Lower case text
bold Bold function changes the font style to bold.
length count the total number of chars present including the blank space in a string
charat specify a location and get the character present their by using charat function.
concat add two or more strings by using concat function.
indexOf The first occurrence of a substring within the main string.
replace replace function to search and replace part of a string
reversing a stringcharat and length property to reverse a string
escape Before sending a string over network we can escape it.
search search function to search for a part of a string inside a main string.
slice to collect part of a string by saying start and length of the substring.
substringCollect part of a main string by using substring function.
userid and domain part userid and domain part of an email address by using different string functions.
onblur event Change the case of the text entered by using unblour event handler

Google+

Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked




Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer