{"id":8849,"date":"2023-07-16T13:25:31","date_gmt":"2023-07-16T04:25:31","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=8849"},"modified":"2025-02-26T11:18:46","modified_gmt":"2025-02-26T02:18:46","slug":"window-open","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=8849","title":{"rendered":"window.open"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;h2&gt; \uc608\uc57d \ub418\uc5c8\uc2b5\ub2c8\ub2e4. &lt;\/h2&gt;\n\n\n&lt;input type=\"button\" value=\"\uc608\uc57d\uc0c1\ud0dc \ubcf4\uae30\" class=\"btn btn-primary\" onclick=\"popup('@Html.Raw(ViewData[\"link\"])');\" \/&gt;\n\n&lt;script&gt;\n    function popup(url)\n    {\n         window.open(url, \"#1\", \"dialogHeight:600px;dialogHeight:400px;dialogWidth:700px;dialogTop:300px;dialogLeft:400px;edge:Raised;center:Yes;help:No;Resiable:No;Status:No;\");\n   }\n\n&lt;\/script&gt;<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">noticeWindow.opener = self; \ucf54\ub4dc\uac00 \ud31d\uc5c5 \ucc3d\uc744 \ud604\uc7ac \ucc3d\uc73c\ub85c \ub2e4\uc2dc \uc5f0\uacb0\ud558\ub294 \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294\ub370, \uc774 \ub300\uc2e0 \uc0c8\ub85c\uc6b4 \ud31d\uc5c5 \ucc3d\uc744 \uc5ec\ub294 \ucf54\ub4dc\ub85c \ubcc0\ud658\ud558\ub824\uba74 window.open()\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, window.open()\uc744 \uc0ac\uc6a9\ud574 \ud31d\uc5c5 \ucc3d\uc744 \ub744\uc6b0\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:java decode:true \">function openNoticeWindow() {\n    const url = \"https:\/\/example.com\";  \/\/ \uc6d0\ud558\ub294 URL\n    const popupFeatures = \"width=600,height=400,scrollbars=yes\";  \/\/ \uc6d0\ud558\ub294 \ud31d\uc5c5 \ucc3d \uc635\uc158\n    const noticeWindow = window.open(url, \"noticePopup\", popupFeatures);\n\n    if (noticeWindow) {\n        noticeWindow.focus();\n    } else {\n        alert(\"\ud31d\uc5c5 \ucc3d\uc744 \uc5f4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ud31d\uc5c5 \ucc28\ub2e8\uae30\ub97c \ud574\uc81c\ud574 \uc8fc\uc138\uc694.\");\n    }\n}\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\ucf54\ub4dc \uc124\uba85<br>url: \ud31d\uc5c5\uc73c\ub85c \uc5f4 \ud398\uc774\uc9c0\uc758 URL\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<br>popupFeatures: \ud31d\uc5c5 \ucc3d\uc758 \ub108\ube44, \ub192\uc774, \uc2a4\ud06c\ub864 \uc5ec\ubd80 \ub4f1\uc758 \uc635\uc158\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<br>window.open() \ud568\uc218\ub85c \ud31d\uc5c5 \ucc3d\uc744 \ub744\uc6b4 \ub4a4, \uc5f4\ub9ac\uba74 focus()\ub85c \ucc3d\uc774 \ud3ec\ucee4\uc2a4\ub418\ub3c4\ub85d \ud569\ub2c8\ub2e4.<br>\uc774\ub807\uac8c \ud558\uba74 opener = self; \uc5c6\uc774\ub3c4 \uc0c8 \ucc3d\uc744 \ud31d\uc5c5\uc73c\ub85c \uc5f4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Asp (param \ucd94\uac00 \ud558\uae30 \uc27d\uac8c)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:asp decode:true \">\/\/ \uae30\ubcf8 URL \uc124\uc815\nvar baseUrl = 'http:\/\/manort.kr\/New_Popup.asp';\n\n\/\/ \ucffc\ub9ac \ud30c\ub77c\ubbf8\ud130 \ubb38\uc790\uc5f4 \uc0dd\uc131 (\uac01 \ud30c\ub77c\ubbf8\ud130\ub294 URL \uc778\ucf54\ub529 \ucc98\ub9ac)\nvar queryParams =\n  'ID=' + encodeURIComponent(ID) +\n  '&amp;Number=' + encodeURIComponent(Number) +\n  '&amp;PCC=' + encodeURIComponent(PCC) +\n  '&amp;RN=' + encodeURIComponent(RN) +\n  '&amp;lang=' + encodeURIComponent(lang);\n\n\/\/ \uc804\uccb4 URL \uc0dd\uc131 (\ubb38\uc790\uc5f4 \uc5f0\uacb0 \ubc29\uc2dd)\nvar url = baseUrl + \"?\" + queryParams;\n\n\/\/ \ud31d\uc5c5 \ucc3d \uc635\uc158 \uc124\uc815\nvar windowOptions = 'width=700,height=900,left=100,top=100';\n\n\/\/ \ud31d\uc5c5 \ucc3d \uc5f4\uae30 \ubc0f \ubd80\ubaa8 \ucc3d \uc9c0\uc815\nvar noticeWindow = window.open(url, '', windowOptions);\nnoticeWindow.opener = self;\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>noticeWindow.opener = self; \ucf54\ub4dc\uac00 \ud31d\uc5c5 \ucc3d\uc744 \ud604\uc7ac \ucc3d\uc73c\ub85c \ub2e4\uc2dc \uc5f0\uacb0\ud558\ub294 \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294\ub370, \uc774 \ub300\uc2e0 \uc0c8\ub85c\uc6b4 \ud31d\uc5c5 \ucc3d\uc744 \uc5ec\ub294 \ucf54\ub4dc\ub85c \ubcc0\ud658\ud558\ub824\uba74 window.open()\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=8849\" title=\"window.open\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[31,224],"tags":[],"class_list":["post-8849","post","type-post","status-publish","format-standard","hentry","category-html","category-netcore"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8849"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8849\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}