Get the invisible text with JavaScript
<p>Suppose we have the following code:</p>

<pre><code>&lt;div id="test" style="width:200px; height: 200px; overflow: hidden;"&gt;
   &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus 
   ipsum diam, cursus ornare eleifend quis, posuere id sapien. Vestibulum
   et mattis augue. Nulla facilisi. Sed rhoncus facilisis commodo. Sed mattis 
   commodo lorem, quis varius est facilisis eget. Integer at nunc metus. 
   Fusce augue odio, elementum et hendrerit vitae, malesuada at urna.&lt;/p&gt;

   &lt;p&gt;Consectetur adipiscing elit. Vivamus lorem ipsum dolor sit amet, 
   ipsum diam, cursus ornare eleifend quis, posuere id sapien. Vestibulum
   et mattis augue. Nulla facilisi. Sed rhoncus facilisis commodo. Sed mattis 
   commodo lorem, quis varius est facilisis eget. Integer at nunc metus. 
   Fusce augue odio, elementum et hendrerit vitae, malesuada at urna.&lt;/p&gt;

   &lt;p&gt;Sed rhoncus facilisis commodo. Sed mattis lorem ipsum dolor sit amet, 
   consectetur adipiscing elit. Vivamus ipsum diam, cursus ornare eleifend 
   quis, posuere id sapien. Vestibulum et mattis augue. Nulla facilisi. 
   commodo lorem, quis varius est facilisis eget. Integer at nunc metus. 
   Fusce augue odio, elementum et hendrerit vitae, malesuada at urna.&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>The result would be a clipped text.</p>

<p>Is there some way to get invisible text as a substring?</p>

<p>I tried </p>

<pre><code>$("#test :hidden").text();
</code></pre>

<p>and </p>

<pre><code>$('#test').children(":hidden").text()
</code></pre>

<p>without success.</p>

<p>I'm trying to show pages of text without scrolling. I have a large amount of text (html formatted) and a fixed size div (the text page). I would like to paginate the text on it, just showing one page of text each time.</p>
