Is there a way to save accordion state after refresh?

Is there a way to save the state of the accordions after a refresh? Say I have 4 accords and refresh the browser with the 3rd one active. Is there a way to save the state so when the browser is refreshed it will reload with the 3rd one active?

Is there a URL way like something.html#3 ?

accordion doesn’t provide a ready solution. The last active item can be got from onActive event:

var active;
accordion.attachEvent(“onActive”,function(id){
active=id;
})

The openItem(id) method opens an item.