<!DOCTYPE html> <html> <body> <iframe src="iframe_inner.html" name="subframe"></iframe> <div id="text"> Main window div text </div> </body> </html>