|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
how to make whole row clickable
hey in asp i am using html table.
i have four columns and in one column i have use href. But now what i want to do is that the user can click anywhere in the row and then it should go to next page i tried using bref in <tr> but its not giving me the effect. Can anyone help me regarding this. |
|
#2
|
||||
|
||||
|
Shouldn't this be on the HTML forum?
You can make your whole table row with the following code from my simple example: Code:
<html>
<head>
<script language="javascript">
function test()
{ window.location="http://forums.aspfree.com"; }
</script>
</head>
<body>
<table border=1>
<tr onClick="test()" onMouseover="this.bgColor='yellow'" onMouseout="this.bgColor='#FFFFFF'">
<th>heading one</th><th>heading two</th>
</tr>
<tr>
<td>one</td><td>two</td>
</tr>
</table>
</body>
</html>
Notice that this example also changes the color of the whole row so that your users know what section of your table is being selected. |
|
#3
|
||||
|
||||
|
thanx so much i am able to achieve the desired effect. i works very well. thanx again.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > how to make whole row clickable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|