onpageloadstring

I am passsing an xhtml tag ID in onPageLoad('TableID') function.

Javascripts are in script.js file which I have called in the xhtml file. But it is throwing error at line where I have calling onpageload function saying " object expected. However, if I have the scripts on same XHTML file, it is working fine. ...

How do you use onPageLoad in Javascript?

I tried using onPageLoad: function() { alert("hi"); } but it won't work. I need it for a Firefox extension. Any suggestions please? ...