We need to know when the last object in our GUI is loaded, In order to know that we need to execute function in JavaScript.

Is there any way to execute JavaScript function from QTP?

Or How can I Know when the last object is loaded in case we canít run a JavaScript function?