>Hi,
>In my script, I load a frame with a page that has radio buttons on it, by setting it's document.location property. Shortly after, a change is made to one of the buttons on that page. However, I get a "is not an object" error, as if the control is not there. If I delay the change by placing an alert() after loading the page, the change goes through. If I put a for loop, with a large count, the change goes through. It's as though it takes time for the buttons to exist on the page. Is there a way around this, or to test if the control exists before attempting a change?
>TIA!
>Mark
If there is a form involved (which for some browsers, you need to display any input controls), then you can add your change code to a function calkled from the Onload event. This only fires after everything is loaded.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao