title: How to make div Scrollable using Javascript
body: <blockquote>
    <p><strong>I am working on Tizen and making web app.</strong></p>
  </blockquote>
  
  <p>I have a div in html5 and I set and image as background on this div. Now i have some scenario in which I have to show some random text in this div multiple times. It is no guaranteed that text always be the same size. My image size is 300 width and 90 height. </p>
  
  <p>Now I want to set my div scroll in up and down direction through javascript whenever my text is larger. I tried scrollTop, overflow: auto/scroll but its not working. </p>
  
  <p>Actually I can see result on HTML view in eclipse but when I run my code on device its not showing any scrollbars. Any help would be appreciated .</p>
  
  <blockquote>
    <p>Here is my code in which I have a div named textView:</p>
  </blockquote>
  
  <pre><code>  &lt;div id="textView" style="height: 90px; width: 300px;  
      margin-left: 20px; margin-top: 20px;overflow: auto;"&gt;
    &lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>And in javascript:</p>
  </blockquote>
  
  <pre><code>  var elem = document.getElementById("textView");
  
    elem.scrollTop="80px";
  
    elem.innerHTML="llllllllllllllllllllllllllllllllllllllllll"+'&lt;br/&gt;'
    +"llllllllllllllllllllllllllllllllllllllllllll"+'&lt;br/&gt;'
    +"llllllllllllllllllllllllllllllllllllllllllll"+'&lt;/br&gt;'
    +"llllllllllllllllllllllllllllllllllllllllllll"+'&lt;br/&gt;';
    elem.style.color = "White";
  
    elem.style.fontSize = "50px";
  </code></pre>
  
  <blockquote>
    <p>I want to show text in image bounds not out of bounds of image.</p>
  </blockquote>