I have three Links:
    <div class="btn-group btn-group-justified">
        <a class="btn btn-default" href="#" onclick="changeSite('all.html')">All</a>
        <a class="btn btn-default" href="#" onclick="changeSite('new.html')">New</a>
        <a class="btn btn-default" href="#" onclick="changeSite('random.html')">Random</a>
    </div>
How you can see on onclick the function changeSite is triggered:
var changeSite = function(pathName){
    document.getElementById("siteContent").innerHTML = 
}
With the help of this function i would like to replace the content of the div with the id siteContent, to either the content of all.html, new.html or random.html. These three sites are in the same Folder like my index.html where the code is actually triggered. How can i set the .innerHTML to the content of one of this sites? Thanks!
 
     
     
    