Calling function via the address bar

Hi,

Is there any way to call a js function via something like:

http://www.domain.com/?variable

Also, I have a Scroller script thats being called onload by the body and another custom function called onload by the window however I’m running into trouble calling the scroller.

Any help on these issues is greatly appreciated.

Cheers

You mean that one of the window.onload is overwriting the other one? If window.onload is redefined, then the last one will overwrite the first one.

If you are viewing a page that contains javascript functions you can execute one of them from the address bar like this:

javascript:void(myFunc());

or you can do something like this:
javascript:void(alert(document.body.innerHTML));