How can I detect when an iframe page begins loading?

thelanman

New Member
I'd like for the opener of an iframe to be able to detect each time the user changes pages within that iframe. Using jQuery, I can detect each time a page finishes loading within an iframe via the following:\[code\]$('#myIframe').on('load', function() {/*do stuff*/});\[/code\]However, I'd also like to detect (in the iframe opener) each time a page starts loading within that iframe.Note: The content that is displayed in the iframe is from a third-party site, so I don't have the ability to insert code there so that the iframe can explicitly alert the opener.Does anyone know of an event that is fired when a page begins loading? I'm not having much luck finding anything via Internet searches, as most people seem to only be interested in detecting when the iframe has finished loading.
 
Back
Top