Topic: Explanation about Javascript string contains
This is the explanation with example about javascript string contains
You are not logged in. Please login or register.
Rails Forum - Ruby on Rails Help and Discussion Forum » XHTML/CSS/JavaScript » Explanation about Javascript string contains
This is the explanation with example about javascript string contains
I have gone through the link and its really very much helpful information on javascript strings.
Thanks for the information. Appreciated a lot.
String Length
var txt="Hello World!";
document.write(txt.length);
var txt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
document.write(txt.length);
Matching Content
var str="Hello world!";
document.write(str.match("world") + "<br>");
document.write(str.match("World") + "<br>");
document.write(str.match("world!"));
Hosting provided by aTech Media