The function itself I can dump into my functions.js but does anyone know how I can avoid using this:
And do the same via jquery?
Here is my onload attempt:
// Your code here
Not sure about onunload though. Would I use the unload function http://docs.jquery.com/Events/unload#fn ? I’m not sure how to write it though and to check that it does execute the GUnload function on unload.