{"id":681,"date":"2011-04-06T02:54:10","date_gmt":"2011-04-05T17:54:10","guid":{"rendered":"http:\/\/blog.t-szk.com\/?p=681"},"modified":"2023-05-07T16:45:20","modified_gmt":"2023-05-07T07:45:20","slug":"javascript%e3%82%af%e3%83%aa%e3%83%83%e3%82%af%e3%81%95%e3%82%8c%e3%81%9f%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e9%96%a2%e6%95%b0%e3%82%92head%e3%82%bf%e3%82%b0%e5%86%85%e3%81%ab%e8%a8%98%e8%bf%b0","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=681","title":{"rendered":"[JavaScript] \u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3092 head \u30bf\u30b0\u5185\u306b\u8a18\u8ff0\u3059\u308b"},"content":{"rendered":"<p>HTML \u30bf\u30b0\u306e\u5c5e\u6027\u3068\u3057\u3066 onclick \u306b\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001HTML \u3068 JavaScript \u306e\u8a18\u8ff0\u304c\u6df7\u3056\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002HTML \u3068 JavaScript \u3092\u5206\u96e2\u3059\u308b\u305f\u3081\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092 HTML \u306e head \u5185\u306b\u8a18\u8ff0\u3057\u305f\u4f8b\u3067\u3059\u3002<br \/>\n\u5b9f\u884c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001alert \u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">&lt;html&gt;\n    &lt;head&gt;\n        &lt;meta http-equiv=\"Content-Type\" content=\"charset=UTF-8\" \/&gt;\n        &lt;title&gt;test&lt;\/title&gt;\n        &lt;script type=\"text\/javascript\"&gt;\n            window.onload = function(){\n                document.getElementById('exec').onclick = function(){\n                    alert('\u307b\u3052');\n                }\n            }\n        &lt;\/script&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;a href=\"#\" id=\"exec\"&gt;\u5b9f\u884c&lt;\/a&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>HTML \u30bf\u30b0\u306e\u5c5e\u6027\u3068\u3057\u3066 onclick \u306b\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001HTML \u3068 JavaScript \u306e\u8a18\u8ff0\u304c\u6df7\u3056\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002HTML \u3068 JavaScript \u3092\u5206\u96e2\u3059\u308b\u305f\u3081\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092 HTML \u306e hea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[5],"tags":[245,130],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-aZ","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/681"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=681"}],"version-history":[{"count":5,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":2635,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/681\/revisions\/2635"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}