title: change length of string in javascript
body: <p>I have a problem I want to change the length of string. This is my string of characters that I want to change.</p>
  
  <blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim .</p>
  </blockquote>
  
  <p>I use <code>substring</code> function in javascript but the outputs is not like I need.
  this is my code</p>
  
  <pre><code>var str="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ";
  document.write(str.substring(100)+"&lt;br /&gt;");
  </code></pre>
  
  <p>but the output is like this</p>
  
  <pre><code>laoreet dolore magna aliquam erat volutpat. Ut wisi enim 
  </code></pre>
  
  <p>My goal is just to make the length of that string of character to be  100 starting from the first character.</p>
  
  <p>how i can solve this...thanks for your answer</p>