2010. 1. 29. 11:54
JavaScript
textMain.html (부모창)
aa.html (자식창)
- <html>
- <head>
- <script type="text/javascript">if (!window.T) { window.T = {} }
- window.T.config = {"TOP_SSL_URL":"https://www.tistory.com","PREVIEW":false,"ROLE":"guest","PREV_PAGE":"","NEXT_PAGE":"","BLOG":{"id":500884,"name":"jbluewing","title":"하늘을향해","isDormancy":false,"nickName":"천상의날개","status":"open","profileStatus":"normal"},"NEED_COMMENT_LOGIN":false,"COMMENT_LOGIN_CONFIRM_MESSAGE":"","LOGIN_URL":"https://www.tistory.com/auth/login/?redirectUrl=http://jbluewing.tistory.com/entry/%25EC%259E%2590%25EC%258B%259D%25EC%25B0%25BD%25EC%2597%2590%25EC%2584%259C-%25EB%25B6%2580%25EB%25AA%25A8%25EC%25B0%25BD-%25ED%2595%25A8%25EC%2588%2598-%25EC%258B%25A4%25ED%2596%2589","DEFAULT_URL":"https://jbluewing.tistory.com","USER":{"name":null,"homepage":null,"id":0,"profileImage":null},"SUBSCRIPTION":{"status":"none","isConnected":false,"isPending":false,"isWait":false,"isProcessing":false,"isNone":true},"IS_LOGIN":false,"HAS_BLOG":false,"IS_SUPPORT":false,"IS_SCRAPABLE":false,"TOP_URL":"http://www.tistory.com","JOIN_URL":"https://www.tistory.com/member/join","PHASE":"prod","ROLE_GROUP":"visitor"};
- window.T.entryInfo = {"entryId":34,"isAuthor":false,"categoryId":150018,"categoryLabel":"JavaScript"};
- window.appInfo = {"domain":"tistory.com","topUrl":"https://www.tistory.com","loginUrl":"https://www.tistory.com/auth/login","logoutUrl":"https://www.tistory.com/auth/logout"};
- window.initData = {};
- window.TistoryBlog = {
- basePath: "",
- url: "https://jbluewing.tistory.com",
- tistoryUrl: "https://jbluewing.tistory.com",
- manageUrl: "https://jbluewing.tistory.com/manage",
- token: "s3VF6tJqaCox+z5lFVHCcgCC5G7jV27tPFgbhtieLMtKfK8H7NfNzSxhNX+ZZ6n9"
- };
- var servicePath = "";
- var blogURL = "";</script>
- <script language="javascript" >
- function test1(){
- form.na.value="부모창 test1호출됬음";
- }
- function test2(){
- form.na.value="부모창 test2호출됬음";
- }
- function test3(){
- form.na.value="부모창 test3호출됬음";
- }
- function popupOpen(){
- window.open("./aa.html",'ㅋㅋㅋ', 'toolbar=no, status=no, scrollbars=yes, resizable=yes, dependent=no, width=900, height=700');
- }
- </script>
- <style type="text/css">.another_category {
- border: 1px solid #E5E5E5;
- padding: 10px 10px 5px;
- margin: 10px 0;
- clear: both;
- }
- .another_category h4 {
- font-size: 12px !important;
- margin: 0 !important;
- border-bottom: 1px solid #E5E5E5 !important;
- padding: 2px 0 6px !important;
- }
- .another_category h4 a {
- font-weight: bold !important;
- }
- .another_category table {
- table-layout: fixed;
- border-collapse: collapse;
- width: 100% !important;
- margin-top: 10px !important;
- }
- * html .another_category table {
- width: auto !important;
- }
- *:first-child + html .another_category table {
- width: auto !important;
- }
- .another_category th, .another_category td {
- padding: 0 0 4px !important;
- }
- .another_category th {
- text-align: left;
- font-size: 12px !important;
- font-weight: normal;
- word-break: break-all;
- overflow: hidden;
- line-height: 1.5;
- }
- .another_category td {
- text-align: right;
- width: 80px;
- font-size: 11px;
- }
- .another_category th a {
- font-weight: normal;
- text-decoration: none;
- border: none !important;
- }
- .another_category th a.current {
- font-weight: bold;
- text-decoration: none !important;
- border-bottom: 1px solid !important;
- }
- .another_category th span {
- font-weight: normal;
- text-decoration: none;
- font: 10px Tahoma, Sans-serif;
- border: none !important;
- }
- .another_category_color_gray, .another_category_color_gray h4 {
- border-color: #E5E5E5 !important;
- }
- .another_category_color_gray * {
- color: #909090 !important;
- }
- .another_category_color_gray th a.current {
- border-color: #909090 !important;
- }
- .another_category_color_gray h4, .another_category_color_gray h4 a {
- color: #737373 !important;
- }
- .another_category_color_red, .another_category_color_red h4 {
- border-color: #F6D4D3 !important;
- }
- .another_category_color_red * {
- color: #E86869 !important;
- }
- .another_category_color_red th a.current {
- border-color: #E86869 !important;
- }
- .another_category_color_red h4, .another_category_color_red h4 a {
- color: #ED0908 !important;
- }
- .another_category_color_green, .another_category_color_green h4 {
- border-color: #CCE7C8 !important;
- }
- .another_category_color_green * {
- color: #64C05B !important;
- }
- .another_category_color_green th a.current {
- border-color: #64C05B !important;
- }
- .another_category_color_green h4, .another_category_color_green h4 a {
- color: #3EA731 !important;
- }
- .another_category_color_blue, .another_category_color_blue h4 {
- border-color: #C8DAF2 !important;
- }
- .another_category_color_blue * {
- color: #477FD6 !important;
- }
- .another_category_color_blue th a.current {
- border-color: #477FD6 !important;
- }
- .another_category_color_blue h4, .another_category_color_blue h4 a {
- color: #1960CA !important;
- }
- .another_category_color_violet, .another_category_color_violet h4 {
- border-color: #E1CEEC !important;
- }
- .another_category_color_violet * {
- color: #9D64C5 !important;
- }
- .another_category_color_violet th a.current {
- border-color: #9D64C5 !important;
- }
- .another_category_color_violet h4, .another_category_color_violet h4 a {
- color: #7E2CB5 !important;
- }
- </style>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/revenue.css"/>
- <link rel="canonical" href="https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89"/>
- <!-- BEGIN STRUCTURED_DATA -->
- <script type="application/ld+json">
- {"@context":"http://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@id":"https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","name":null},"url":"https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","headline":"자식창에서 부모창 함수 실행","description":"textMain.html (부모창) 자식창호출 aa.html (자식창) 부모test1() 호출 부모test2() 호출 부모test3() 호출후 창닫음","author":{"@type":"Person","name":"천상의날개","logo":null},"image":{"@type":"ImageObject","url":"https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Ft1.daumcdn.net%2Ftistory_admin%2Fstatic%2Fimages%2FopenGraph%2Fopengraph.png","width":"800px","height":"800px"},"datePublished":"2010-01-29T11:54:31+09:00","dateModified":"2010-02-04T09:41:14+09:00","publisher":{"@type":"Organization","name":"TISTORY","logo":{"@type":"ImageObject","url":"https://t1.daumcdn.net/tistory_admin/static/images/openGraph/opengraph.png","width":"800px","height":"800px"}}}
- </script>
- <!-- END STRUCTURED_DATA -->
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/dialog.css"/>
- <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/font.css"/>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/postBtn.css"/>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/tistory.css"/>
- <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/script/common.js"></script>
- </head>
- <body>
- <button type=button onclick="popupOpen()">자식창호출</button>
- <form name="form">
- <input type="text" name="na" style="border:none;" width="10" disabled="false"/>
- </form>
- <div style="margin:0; padding:0; border:none; background:none; float:none; clear:none; z-index:0"></div>
- <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/script/common.js"></script>
- <script type="text/javascript">window.roosevelt_params_queue = window.roosevelt_params_queue || [{channel_id: 'dk', channel_label: '{tistory}'}]</script>
- <script type="text/javascript" src="//t1.daumcdn.net/midas/rt/dk_bt/roosevelt_dk_bt.js" async="async"></script>
- <script>window.tiara = {"svcDomain":"user.tistory.com","section":"글뷰","trackPage":"글뷰_보기","page":"글뷰","key":"500884-34","customProps":{"userId":"0","blogId":"500884","entryId":"34","role":"guest","trackPage":"글뷰_보기","filterTarget":false},"entry":{"entryId":"34","entryTitle":"자식창에서 부모창 함수 실행","entryType":"POST","categoryName":"JavaScript","categoryId":"150018","serviceCategoryName":null,"serviceCategoryId":null,"author":"445231","authorNickname":"천상의날개","blogNmae":"하늘을향해","image":"","plink":"/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","tags":[]},"kakaoAppKey":"3e6ddd834b023f24221217e370daed18","appUserId":"null"}</script>
- <script type="module" src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/index.js"></script>
- <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/polyfills-legacy.js" nomodule="true" defer="true"></script>
- <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/index-legacy.js" nomodule="true" defer="true"></script>
- </body>
- </html>
- <html>
- <head>
- <script type="text/javascript">if (!window.T) { window.T = {} }
- window.T.config = {"TOP_SSL_URL":"https://www.tistory.com","PREVIEW":false,"ROLE":"guest","PREV_PAGE":"","NEXT_PAGE":"","BLOG":{"id":500884,"name":"jbluewing","title":"하늘을향해","isDormancy":false,"nickName":"천상의날개","status":"open","profileStatus":"normal"},"NEED_COMMENT_LOGIN":false,"COMMENT_LOGIN_CONFIRM_MESSAGE":"","LOGIN_URL":"https://www.tistory.com/auth/login/?redirectUrl=http://jbluewing.tistory.com/entry/%25EC%259E%2590%25EC%258B%259D%25EC%25B0%25BD%25EC%2597%2590%25EC%2584%259C-%25EB%25B6%2580%25EB%25AA%25A8%25EC%25B0%25BD-%25ED%2595%25A8%25EC%2588%2598-%25EC%258B%25A4%25ED%2596%2589","DEFAULT_URL":"https://jbluewing.tistory.com","USER":{"name":null,"homepage":null,"id":0,"profileImage":null},"SUBSCRIPTION":{"status":"none","isConnected":false,"isPending":false,"isWait":false,"isProcessing":false,"isNone":true},"IS_LOGIN":false,"HAS_BLOG":false,"IS_SUPPORT":false,"IS_SCRAPABLE":false,"TOP_URL":"http://www.tistory.com","JOIN_URL":"https://www.tistory.com/member/join","PHASE":"prod","ROLE_GROUP":"visitor"};
- window.T.entryInfo = {"entryId":34,"isAuthor":false,"categoryId":150018,"categoryLabel":"JavaScript"};
- window.appInfo = {"domain":"tistory.com","topUrl":"https://www.tistory.com","loginUrl":"https://www.tistory.com/auth/login","logoutUrl":"https://www.tistory.com/auth/logout"};
- window.initData = {};
- window.TistoryBlog = {
- basePath: "",
- url: "https://jbluewing.tistory.com",
- tistoryUrl: "https://jbluewing.tistory.com",
- manageUrl: "https://jbluewing.tistory.com/manage",
- token: "s3VF6tJqaCox+z5lFVHCcgCC5G7jV27tPFgbhtieLMtKfK8H7NfNzSxhNX+ZZ6n9"
- };
- var servicePath = "";
- var blogURL = "";</script>
- <script language="javascript" >
- function ptest1(){
- window.opener.test1();
- }
- function ptest2(){
- window.opener.test2();
- }
- function ptest3(){
- window.opener.test3();
- window.close();
- }
- </script>
- <style type="text/css">.another_category {
- border: 1px solid #E5E5E5;
- padding: 10px 10px 5px;
- margin: 10px 0;
- clear: both;
- }
- .another_category h4 {
- font-size: 12px !important;
- margin: 0 !important;
- border-bottom: 1px solid #E5E5E5 !important;
- padding: 2px 0 6px !important;
- }
- .another_category h4 a {
- font-weight: bold !important;
- }
- .another_category table {
- table-layout: fixed;
- border-collapse: collapse;
- width: 100% !important;
- margin-top: 10px !important;
- }
- * html .another_category table {
- width: auto !important;
- }
- *:first-child + html .another_category table {
- width: auto !important;
- }
- .another_category th, .another_category td {
- padding: 0 0 4px !important;
- }
- .another_category th {
- text-align: left;
- font-size: 12px !important;
- font-weight: normal;
- word-break: break-all;
- overflow: hidden;
- line-height: 1.5;
- }
- .another_category td {
- text-align: right;
- width: 80px;
- font-size: 11px;
- }
- .another_category th a {
- font-weight: normal;
- text-decoration: none;
- border: none !important;
- }
- .another_category th a.current {
- font-weight: bold;
- text-decoration: none !important;
- border-bottom: 1px solid !important;
- }
- .another_category th span {
- font-weight: normal;
- text-decoration: none;
- font: 10px Tahoma, Sans-serif;
- border: none !important;
- }
- .another_category_color_gray, .another_category_color_gray h4 {
- border-color: #E5E5E5 !important;
- }
- .another_category_color_gray * {
- color: #909090 !important;
- }
- .another_category_color_gray th a.current {
- border-color: #909090 !important;
- }
- .another_category_color_gray h4, .another_category_color_gray h4 a {
- color: #737373 !important;
- }
- .another_category_color_red, .another_category_color_red h4 {
- border-color: #F6D4D3 !important;
- }
- .another_category_color_red * {
- color: #E86869 !important;
- }
- .another_category_color_red th a.current {
- border-color: #E86869 !important;
- }
- .another_category_color_red h4, .another_category_color_red h4 a {
- color: #ED0908 !important;
- }
- .another_category_color_green, .another_category_color_green h4 {
- border-color: #CCE7C8 !important;
- }
- .another_category_color_green * {
- color: #64C05B !important;
- }
- .another_category_color_green th a.current {
- border-color: #64C05B !important;
- }
- .another_category_color_green h4, .another_category_color_green h4 a {
- color: #3EA731 !important;
- }
- .another_category_color_blue, .another_category_color_blue h4 {
- border-color: #C8DAF2 !important;
- }
- .another_category_color_blue * {
- color: #477FD6 !important;
- }
- .another_category_color_blue th a.current {
- border-color: #477FD6 !important;
- }
- .another_category_color_blue h4, .another_category_color_blue h4 a {
- color: #1960CA !important;
- }
- .another_category_color_violet, .another_category_color_violet h4 {
- border-color: #E1CEEC !important;
- }
- .another_category_color_violet * {
- color: #9D64C5 !important;
- }
- .another_category_color_violet th a.current {
- border-color: #9D64C5 !important;
- }
- .another_category_color_violet h4, .another_category_color_violet h4 a {
- color: #7E2CB5 !important;
- }
- </style>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/revenue.css"/>
- <link rel="canonical" href="https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89"/>
- <!-- BEGIN STRUCTURED_DATA -->
- <script type="application/ld+json">
- {"@context":"http://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@id":"https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","name":null},"url":"https://jbluewing.tistory.com/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","headline":"자식창에서 부모창 함수 실행","description":"textMain.html (부모창) 자식창호출 aa.html (자식창) 부모test1() 호출 부모test2() 호출 부모test3() 호출후 창닫음","author":{"@type":"Person","name":"천상의날개","logo":null},"image":{"@type":"ImageObject","url":"https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Ft1.daumcdn.net%2Ftistory_admin%2Fstatic%2Fimages%2FopenGraph%2Fopengraph.png","width":"800px","height":"800px"},"datePublished":"2010-01-29T11:54:31+09:00","dateModified":"2010-02-04T09:41:14+09:00","publisher":{"@type":"Organization","name":"TISTORY","logo":{"@type":"ImageObject","url":"https://t1.daumcdn.net/tistory_admin/static/images/openGraph/opengraph.png","width":"800px","height":"800px"}}}
- </script>
- <!-- END STRUCTURED_DATA -->
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/dialog.css"/>
- <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/font.css"/>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/postBtn.css"/>
- <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/style/tistory.css"/>
- <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/script/common.js"></script>
- </head>
- <body>
- <button type=button onclick="ptest1()">부모test1() 호출</button>
- <button type=button onclick="ptest2()">부모test2() 호출</button>
- <button type=button onclick="ptest3()">부모test3() 호출후 창닫음</button>
- <div style="margin:0; padding:0; border:none; background:none; float:none; clear:none; z-index:0"></div>
- <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/userblog-a1d0d3e1a8477be45263763259b4c622c2b37408/static/script/common.js"></script>
- <script type="text/javascript">window.roosevelt_params_queue = window.roosevelt_params_queue || [{channel_id: 'dk', channel_label: '{tistory}'}]</script>
- <script type="text/javascript" src="//t1.daumcdn.net/midas/rt/dk_bt/roosevelt_dk_bt.js" async="async"></script>
- <script>window.tiara = {"svcDomain":"user.tistory.com","section":"글뷰","trackPage":"글뷰_보기","page":"글뷰","key":"500884-34","customProps":{"userId":"0","blogId":"500884","entryId":"34","role":"guest","trackPage":"글뷰_보기","filterTarget":false},"entry":{"entryId":"34","entryTitle":"자식창에서 부모창 함수 실행","entryType":"POST","categoryName":"JavaScript","categoryId":"150018","serviceCategoryName":null,"serviceCategoryId":null,"author":"445231","authorNickname":"천상의날개","blogNmae":"하늘을향해","image":"","plink":"/entry/%EC%9E%90%EC%8B%9D%EC%B0%BD%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EC%B0%BD-%ED%95%A8%EC%88%98-%EC%8B%A4%ED%96%89","tags":[]},"kakaoAppKey":"3e6ddd834b023f24221217e370daed18","appUserId":"null"}</script>
- <script type="module" src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/index.js"></script>
- <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/polyfills-legacy.js" nomodule="true" defer="true"></script>
- <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.5/index-legacy.js" nomodule="true" defer="true"></script>
- </body>
- </html>
'JavaScript' 카테고리의 다른 글
div 테그 (0) | 2010.04.02 |
---|---|
현제 쿠키값 보기 (0) | 2010.03.02 |
popup post로 넘기기 (0) | 2010.01.29 |
form 엑션으로 가기전 체크 가능한것 onSubmit(); (0) | 2010.01.29 |
외부 자바스크립트 불러오기(js 안에서 js include후 사용법도있음) (0) | 2010.01.29 |