unload html on mouseover html with javascript
<p>I have JavaScript code loading HTML page in div content. And need unload previous HTML file then again load new HTML page. Please write if u can do it.
<a href="http://img842.imageshack.us/img842/7838/jsfl.jpg" rel="nofollow">Original code image</a></p>

<pre><code>var please_wait = null;

function open_url(url, target){
    if (!document.getElementById){
        return false;
        }
        if(please_wait != null){
            document.getElementByID(target).innerHTML = please_wait;
        }
        if(window.Activexobject){
            link = new Activexobject("Microsoft.XMLHTTP");
        } else if (window.XMLHTTPRequest){
                link = new XMLHttpRequest();
        }
        if(link == undefined){
            return false;
        }       
        link.onreadystatechange = function () { response(url, target);}
        link.open("GET", url, true);
        link.send(nul);
}
function response(url, target){
    if (link.readystate == 4){
        document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "Error: " + link.status
    }
}
function set_loading_message(msg){
    please_wait = msg;
}
</code></pre>
