I have this javascript code set up which loads the contents of a HTML page into my div #mid. This does it by default for ALL links on my website no matter where pressed. However, I want to link to an external website and don't want the javascript to load this into the div, I want it to open in a new tab.
<script src="javascript/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="javascript/core.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
// Configuration
divID = '#mid';
loadingHTML = 'Loading..';
});
</script>
<script type="text/javascript">
$(function(){
$(divID).load('pages/home.html');
});
</script>
To load links I just use:
<a href="pages/services.html"></a>
How can I stop it loading into the div for certain links which I choose? Thanks for the help!