I have a table with 3 columns en 2 rows. The rows are clickable. Row 1 is hyperlinked to page1.htm en row 2 to page2.htm
So far everthing is working fine.
But now i have placed a button into a cell of the first row wich is hyperlinked to buttonpage.htm
When i click the button it goes to page1.htm instead of buttonpage.htm
I tried to add id's (thanks to monksnake) to the cells and the button to make a if_then_else construction, but nothing works. Who can help me!
This is the code:
<html>
<head>
<script type="text/javascript">
function Goto(Url)
{
document.location.href = Url;
}
</script>
</head>
<body>
<table border="1" width="100%">
<tr id="RowIDid" onclick="Goto('page1.htm');">
<td align="center">1</td>
<td width="384" align="center"><input id="Button_id" type="Button" value="Button" name="B3" onclick="Goto('buttonpage.htm');"></td>
<td width="537" align="center">3</td>
</tr>
<tr id="RowIDid" onclick="Goto('page2.htm');">
<td align="center">4</td>
<td width="384" align="center">5</td>
<td width="537" align="center">6</td>
</tr>
</table>
</body>
</html>
So far everthing is working fine.
But now i have placed a button into a cell of the first row wich is hyperlinked to buttonpage.htm
When i click the button it goes to page1.htm instead of buttonpage.htm
I tried to add id's (thanks to monksnake) to the cells and the button to make a if_then_else construction, but nothing works. Who can help me!
This is the code:
<html>
<head>
<script type="text/javascript">
function Goto(Url)
{
document.location.href = Url;
}
</script>
</head>
<body>
<table border="1" width="100%">
<tr id="RowIDid" onclick="Goto('page1.htm');">
<td align="center">1</td>
<td width="384" align="center"><input id="Button_id" type="Button" value="Button" name="B3" onclick="Goto('buttonpage.htm');"></td>
<td width="537" align="center">3</td>
</tr>
<tr id="RowIDid" onclick="Goto('page2.htm');">
<td align="center">4</td>
<td width="384" align="center">5</td>
<td width="537" align="center">6</td>
</tr>
</table>
</body>
</html>