Rendered Webpage
HTML Document
Object Log
This webpage simply logs the window, document, navigator, location, and history objects so you can view their contents. The button below uses the location object to redirect this page to Google.com and the image below shows what your console should display after loading the webpage. Note the difference between the two buttons in the Rendered Webpage. Because I embedded the page into an iFrame element within the outer window we must use window.top.location.href instead of location.href to redirect our window to Google.com
Go To Google.com From iFrame
Go To Google.com From HTML Page
Screenshot of Google Chrome with the console open