document.getElementById("html1").src = 'http://www.google.com/'; alert(document.getElementById("html1").documentWindow.location.href);