Is there any way to hook into the page's onpageshow handler?
I'm trying to prototype a button that would enable me to switch between one of two languages on the website by using CSS, cookies and Javascript. I think I have some of it working except I need to be able to set the controls to the desired language when I visit a new page. I think I need to hook into the page's "onpageshow" event handler to make my calls there.
Does anyone know if there is a way to do this? If not, it'd be great if WA supplied hooks so we could make calls to the various page events. Have like a default user "onpageshow" event handler that's alway called and we could override if desired.
![](https://secure.gravatar.com/avatar/8bb95947ad402d8ccac5739b2a6d58ee?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)