<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>แก้ไขกราฟ</title> <script src="../../asset/js/canvasjs/jquery-1.11.1.min.js"></script> <script> $(document).ready(function () { // $('#btn1').click(function () { // alert('hello'); // }); var frame1 = window.frames[1].document; // var frame2 = document.getElementById('frame2'); console.log(frame1); // console.log(frame2); var children = frame1.children; children = children[0].children; // children = children[1].children; console.log(children[1]); }); </script> </head> <frameset cols="30%,70%" border="10" bordercolor="#343a40"> <frame src="./editChart.html" id="frame1"> </frame> <frame src="./showChart.html" id="frame2"></frame> </frameset> </script> </html>