use the documentcompleted event. That event fires when the page is fully loaded. In that event you can check the current URL to take specific action based on what page has just loaded.


Just also note it will fire more than once if the page is actually a frames page.