I am a noob to custom brick development

Hey guys,

Firstly apologies if I have posted this in the wrong place.
I am just developing my first brick. I have a page selector as one of my interface elements and I am wondering how I can change one od the HTML elements to link to the targeted page.

Anyone got any ideas how I would do this in the javascript?


Ignore me. I figured it out data-blocs-page to the rescue