fires when content of the external page is loaded into the window
w1.attachEvent("onContentLoaded", function(win){ // code here });