Not tested:
jQuery:
Code:
<head>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<div id="nav">
<a href="javascript: void(0)" onclick="$('#content').load('yourfile.html'); return false">Content</a>
</div>
<div id="content" >
This is where the content goes...
</div>
</body>
Without jQuery:
Code:
<head>
...
</head>
<body>
<div id="nav">
<a href="javascript: void(0)" onclick="document.getElementById('content').innerHTML=frames.content.document.body.innerHTML; return false">Content</a>
</div>
<div id="content" >
<iframe name="content" src="yourfile.html" style="position: absolute; width:0; height:0; left: -100%"></iframe>
This is where the content goes...
</div>
</body>
Bookmarks