after clicking on anchor fragment I want to detect "target" event on the target element

after clicking on anchor fragment I want to detect "target" event on the target element

I have an anchor fragment ( year buttons) which is linked to a table header ( year table header). 

I want to detect "target" event triggering on the table header after someone has clicked on the anchor.

For example: clicking on the 1843 button will wisk the user down to the 1843 table header.

Is this thing?