// substring
var str = "something text";
var temp = str.substring(1, 4);
// alert(temp);

// indexof
var str = "This is some text";
var temp = str.indexOf("text");
// alert(temp);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.