Linking to specific accordion entry from another page

Linking to specific accordion entry from another page

I'd like to link to a page that holds n accordion control, but depending on the page I'm coming from, I'd like to select which accordion header is open by default. I see there is an "active" option, but I'm not sure how to set that onPageLoad each time.