I have following 2 tables and a script having a function includePage(). Table with id=1 contains a menu whereas table with id2 is empty. It just contain one cell.
Now i want that when a user click on the first option in the menu of table having id=1, a dummypage1.html may appear in the table having id=2. Similary when she clicks on the second option of menu of table having id=1, a dummypage2.html may appear in the table having id=2.
How exactly can i tell the browser with the help of script to include the pages in table having id=2? Please help.
<table id="1">
<tr>
<td id="choice1" onclick="loadPage()">Initialize Session</td></tr>
<td id="choice2" onclick="loadPage()">Sessions Information</td></tr>
</tr>
<table id="2">
<script language="javascript">
function loadPage(){
//if (document.getElementById('choice1')
// {
// <iframe src="sessionInformationTable.html" width="727px" height="416px"></iframe>
// }
}
</script>