InfoBar code!?!

Hi,

Just wondering if it’s possible to create a button within the InfoBar that can be used to close the bar rather than the X button that come as standard?

I’ve got the buttons all sorted but can’t work out the code…

It’s for cookies, so one button will take the user to a site to help them remove cookies and I want the ‘that’s ok’ button to simply close the bar.

Thanks in advance!!

Rebecca