{"id":527,"date":"2024-04-15T08:03:22","date_gmt":"2024-04-14T23:03:22","guid":{"rendered":"http:\/\/inwelly.com\/?p=527"},"modified":"2024-04-22T06:07:17","modified_gmt":"2024-04-21T21:07:17","slug":"javascript-%ec%bb%a4%ec%a7%80%eb%a9%b4%ec%84%9c-%ec%97%b4%eb%a6%ac%eb%8a%94-%ec%9c%88%eb%8f%84%ec%9a%b0-%ec%95%84%eb%9e%98%eb%a1%9c-%ec%bb%a4%ec%a7%84%ed%9b%84-%ec%98%86%ec%9c%bc%eb%a1%9c-%ec%bb%a4","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=527","title":{"rendered":"JAVASCRIPT \ucee4\uc9c0\uba74\uc11c \uc5f4\ub9ac\ub294 \uc708\ub3c4\uc6b0-\uc544\ub798\ub85c \ucee4\uc9c4\ud6c4 \uc606\uc73c\ub85c \ucee4\uc9d0"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>-------- \ud30c\uc77c : test.html ----------------\n&lt;html>\n&lt;head>\n&lt;title>\ucee4\uc9c0\uba74\uc11c \uc5f4\ub9ac\ub294 \uc708\ub3c4\uc6b0-\uc774\ubc88\uac83\uc740 \uc544\ub798\ub85c \ucee4\uc9c4\ud6c4 \uc606\uc73c\ub85c \ucee4\uc9d1\ub2c8\ub2e4.&lt;\/title>\n\n&lt;SCRIPT language=JavaScript>\n&lt;!-- Begin\nfunction expandingWindow(website) {\nvar windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'\nvar heightspeed = 2; \/\/ \uc2a4\ud06c\ub864 \uc18d\ub3c4-\ub192\uc774\nvar widthspeed = 7;  \/\/ \uc2a4\ud06c\ub864\uc18d\ub3c4-\ub113\uc774 (higher = slower)\nvar leftdist = 10;    \/\/ \ucc98\uc74c \uc5f4\ub9ac\ub294 \uc704\uce58 \uc67c\ucabd\uc5d0\uc11c\nvar topdist = 10;     \/\/ \uc704\ucabd\uc5d0\uc11c \ucc98\uc74c \uc5f4\ub9ac\ub294 \uc704\uce58\n\nif (window.resizeTo&amp;&amp;navigator.userAgent.indexOf(\"Opera\")==-1) {\nvar winwidth = window.screen.availWidth - leftdist;\nvar winheight = window.screen.availHeight - topdist;\nvar sizer = window.open(\"\",\"\",\"left=\" + leftdist + \",top=\" + topdist +\",\"+ windowprops);\nfor (sizeheight = 1; sizeheight &lt; winheight; sizeheight += heightspeed)\nsizer.resizeTo(\"1\", sizeheight);\nfor (sizewidth = 1; sizewidth &lt; winwidth; sizewidth += widthspeed)\nsizer.resizeTo(sizewidth, sizeheight);\nsizer.location = website;\n}\nelse\nwindow.open(website,'mywindow');\n}\n\/\/  End -->\n&lt;\/SCRIPT>\n\n&lt;\/head>\n\n\n&lt;body bgcolor=\"#207400\" text=\"#ffffff\" link=\"#ffffff\">\n\n&lt;form>\n&lt;input type=\"button\" value=\"\ud074\ub9ad\ud558\uc138\uc694!\" onClick=\"expandingWindow('.\/test_pop.html')\">\n&lt;\/form>\n\n&lt;\/body>\n&lt;\/html>\n\n\n\n-------- \ud30c\uc77c : test_pop.html ---------\n\n&lt;html>\n&lt;head>&lt;\/head>\n&lt;body onresize=\"parent.resizeTo(800,600)\" onload=\"parent.resizeTo(800,600)\">\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1279,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[97,101,100],"class_list":["post-527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-javascript","tag-101","tag-100"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=527"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions\/528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/media\/1279"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}