Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript substr()

var string = "WelcomeToSofthunt.netTutorialWebsite";
one = string.substr(0, 7)
two = string.substr(7, 2)
three = string.substr(9,12)
four = string.substr(21, 8)
five = string.substr(29,36)
six = string.substr(0)
 
document.write(one);
document.write(two);
document.write(three);
document.write(four);
document.write(five);
document.write(six);
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #JavaScript
ADD COMMENT
Topic
Name
9+1 =