You can try
$("iframe").load(function(){
to detect downloads and frame updates
and if the redirection occurs on the second boot
//var to count times iframe has loaded var timesRefreshed = 0; //detect iframe loading/refreshing $("iframe").load(function(){ //if second refresh, change frame src - ie dont count first load if(timesRefreshed == 1){ $(this).attr("src","my site url here"); } //add to times resreshed counter timesRefreshed++; });
If the number of steps is greater, just change x to the number of steps
if(timesRefreshed == x)
This is not complete evidence. those. if it can break, if another site adds a scene, etc., but this is the best I can come up with if you do not have control over another site.
Ed fryed
source share