I have the following JavaScript code
frame.onload = function()
{
// Get element
}
frame.src = url //url is an external and I don't have control over it
But here frame.onload event fires before the frame fully loaded. If I set timeout for 5 seconds after that I can get needed element. So how to wait frame to fully load?