html - How to make whole table as a link? -


is possible make whole table link?

i have table displays statistical data, wish add additional functionality table .. when user clicks on any part of table, webpage should guide him/her new page.

it's not possible. however, can emulated javascript. need asign onclick event handler table , make change document.location property:

var mytable = document.getelementbyid("my-table"); mytable.onclick = function(){     document.location.href = "http://example.com"; } 

you can provide , adequate cursor css:

table#my-table{     cursor: pointer; } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -