live chat software for live support and live help Online chat software for website

Live chat software

Browser based operator console
Articles

Webtools > JavaScript tutorials > JavaScript substring() Method

JavaScript substring() Method

JavaScript substring() Method:


substring() method extracts the characters in a string between two specified indices.

syntax:

substring(start-index,stop-index)

Example :

<script type="text/javascript">

var sting="welcome to javascript";

document.write(str.substring(0,4))

</script>

The output of the code above will be:

welco

 

Tag : JavaScript substring,javascript substring function,substring negative index

 

WebTools Categories

Network Tools

Search engine tools

Web site tools

PHP resources

ASP tools and resources

Web design tools

JavaScript tutorials

CSS tutorials

Linux resources

Windows Resources

eCommerce Tools

Free Web Templates

MySql Resources

 

Popular Web Tools

MX lookup
WHOIS lookup
PTR Checker
IP Block Cheacker
IP to Location
Port Checker
Word Count
Character Count
XML sitemap creator
Age Calculator
Google Page rank
w3c validator