26 <body style="margin: 0; padding: 0;">
29 <button style="margin: 25px; border: 0; width: 250px; height: 50px">
35 <button style="margin: 25px; border: 0; width: 250px; height: 50px">
40 <div><iframe id="frame1" style="width: 300px; height: 100px;"></iframe></div>
42 <div><iframe id="frame2" style="width: 150px; height: 50px;"></iframe></div>
46 '<body style="margin: 0; padding: 0;">\n' +
47 '<div style="width: 300px; height: 100px;">\n' +
48 ' <button style="margin: 25px; border: 0; width: 250px; height: 50px">\n' +
54 function writeFrameCode(frame) {
55 var doc = frame.contentWindow.document;
61 var frame1 = document.getElementById('frame1');
62 writeFrameCode(frame1);
64 var frame2 = document.getElementById('frame2');
65 writeFrameCode(frame2);
66 frame2.contentWindow.scrollTo(150, 50);