<p>I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between <code>&lt;div id="LiveArea"&gt;</code> and <code>&lt;/div&gt;</code> from that variable using JavaScript.</p>

<p>Any help is greatly appreciated.</p>

I'm not sure I follow you when you say, "Javascript variable which holds an html page", but If you need to extract the HTML between such a div, you can use the element's innerHTML property.
```
```
var e = document.getElementById('LiveArea');
if(e) alert(e.innerHTML);
```
```