Turn a details view, into a link to another page using Javascript

I am trying to create a homepage dashboard that includes a panel of buttons with active data based on the user that is logged in, that you can click and see the full set of records. I'm doing this by creating count fields in the user account, and updating the view for each detail set so it looks small and button like.

The only problem is... I don't actually know how to turn it into a button that can link to the corresponding page with the table of records. I know there is an option to include a view link, but this looks clunky in the interface.

From what I can see this is an eventlistener, but every time I try and apply it the page the page does not load correctly.

Any help would be greatly appreciated!