I have select list which submits the page and the page is then re-rendered with various fields hidden depending on the value of the select list. There is a button at the top of the page which is causing problems if it is pressed before the page is fully rendered.
Is there a way in javascript that I can on press of the button I can tell if the page is fully rendered?
Or is there a better way to do this?
p.s we don't use jquery but do use prototype.
Thanks
Dougal.