Sebastian Heyn
Sebastian Heyn

Reputation: 417

html <a name> attribute not working

To be able to jump to a certain table row, I add an attribute before each table row. however, I cannot jump to the table row, when adding a

http://server/test.php#row-92

to my url. The table row is built like that

<a name="row-92"></a><tr onclick="document.location ..... </tr>

Upvotes: 0

Views: 1043

Answers (1)

MrTux
MrTux

Reputation: 34002

You should use the id-attribute. Starting with HTML5 the a-name tag is deprecated.

<tr id="row-97" onclick="document.location ..... </tr>

Upvotes: 1

Related Questions