{"id":13998,"date":"2020-03-13T10:11:54","date_gmt":"2020-03-13T09:11:54","guid":{"rendered":"https:\/\/inboundcph.dk\/script\/"},"modified":"2024-04-26T02:51:52","modified_gmt":"2024-04-26T01:51:52","slug":"-18","status":"publish","type":"post","link":"https:\/\/inboundcph.dk\/en\/script\/","title":{"rendered":"Script"},"content":{"rendered":"<h2>What is a script?<\/h2>\n<p>A script is a piece of code that performs a specific function. When people talk about a script on the internet, they are usually referring to JavaScript. JavaScript is the most widely used scripting language on websites and all web browsers support it. For example, JavaScript can be used to validate a form that you have filled out on a website.<\/p>\n<p>The JavaScript can either be executed via the browser or on the web server. Other scripting languages include: PHP, AppleScript, CGI script, ECMAScript, JScript, VBscript, VRML and Visual DialogScript.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-7856 aligncenter\" src=\"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/script-2.png\" alt=\"\" width=\"275\" height=\"171\" \/><\/p>\n<p style=\"text-align: center;\">Example of a script. We use the script on the website to display a pop-up.<\/p>\n<hr \/>\n<h2>How do my scripts affect my SEO?<\/h2>\n<p>Google can read scripts, but you shouldn't expect it to do so as it requires more effort for the search engine. Therefore, we recommend that you avoid using JavaScript to display important content on your website as much as possible. You can use a browser plugin such as Web Developer for Google Chrome to see how your website is displayed when JavaScript is disabled. This allows you to check whether or not your content is being displayed in case Google is not reading your JavaScript.<\/p>\n<hr \/>\n<h2>What is a script error?<\/h2>\n<p>Most scripts work without a hitch. But like anything else, it's rare that a JavaScript reports an error via an error message that pops up on the screen.<\/p>\n<p>Script errors can appear to users on the internet if their internet program is set to block scripts. In such cases, the error will be visible on several different websites, as this setting will block all of them.<\/p>\n<p>If users have not set their web application to block scripts, the error is more likely to be that one or more scripts on a specific website are having problems. The cause of the error can be many, and it's not always easy for programmers to know what types of errors can occur. For this, the programmer can put the script into a debug mode, which can help find the error and provide information on how to fix the error.<\/p>\n<p>Read more about <a href=\"\/en\/viden\/\/\">technical SEO<\/a>.<\/p>\n<hr \/>\n<h2>Frequently asked questions<\/h2>\n<div class=\"legacy-faq-container\"><div class=\"legacy-faq-item\">\n                <div class=\"legacy-faq-question\" onclick=\"toggleFAQ('faq-3842937719')\">\n                    <span class=\"question-text\">What is a script?<\/span>\n                    <span class=\"toggle-icon\">+<\/span>\n                <\/div>\n                <div id=\"faq-3842937719\" class=\"legacy-faq-answer\"><p>A script is a piece of code that can perform a specific function on a website, for example.<\/p>\n<\/div>\n            <\/div><\/p>\n<p><div class=\"legacy-faq-item\">\n                <div class=\"legacy-faq-question\" onclick=\"toggleFAQ('faq-4093210124')\">\n                    <span class=\"question-text\">What is a script used for?<\/span>\n                    <span class=\"toggle-icon\">+<\/span>\n                <\/div>\n                <div id=\"faq-4093210124\" class=\"legacy-faq-answer\"><p>A script can be used for many things. For example, it can be used to collect visitor statistics on a website.<\/p>\n<\/div>\n            <\/div><\/p>\n<p><div class=\"legacy-faq-item\">\n                <div class=\"legacy-faq-question\" onclick=\"toggleFAQ('faq-104109337')\">\n                    <span class=\"question-text\">Are scripts dangerous?<\/span>\n                    <span class=\"toggle-icon\">+<\/span>\n                <\/div>\n                <div id=\"faq-104109337\" class=\"legacy-faq-answer\"><p>In general, scripts are not dangerous. But hackers can inject so-called malicious scripts into a website and compromise security.<\/p>\n<\/div>\n            <\/div><\/p>\n<p><div class=\"legacy-faq-item\">\n                <div class=\"legacy-faq-question\" onclick=\"toggleFAQ('faq-3872912839')\">\n                    <span class=\"question-text\">What is a scripting language?<\/span>\n                    <span class=\"toggle-icon\">+<\/span>\n                <\/div>\n                <div id=\"faq-3872912839\" class=\"legacy-faq-answer\"><p>A scripting language is a system of codes and rules used for programming. Examples of scripting languages are JavaScript and PHP.<\/p>\n<\/div>\n            <\/div><\/p>\n<p><\/div>","protected":false},"excerpt":{"rendered":"<p>Hvad er et script? Et script er et stykke kode, der udf\u00f8rer en bestemt funktion. N\u00e5r der tales om et script p\u00e5 internettet, er det som oftest JavaScript, der refereres til. JavaScript er det mest udbredte script-sprog p\u00e5 websites, og alle internetbrowsere underst\u00f8tter det. JavaScript kan eksempelvis bruges til at validere en formular, som du [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15231,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[91],"tags":[],"class_list":["post-13998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teknisk-seo-noerderi_cat"],"acf":{"form":false,"post_short_description":"Et script er et stykke kode, der kan udf\u00f8re en specifik funktion enten p\u00e5 et website, i en app eller i et computerprogram. Scripts kan eksempelvis bruges til at indsamle bes\u00f8gsstatistik og til at tilf\u00f8re interaktive elementer til et website. Betegnelsen script bruges is\u00e6r indenfor programmering. L\u00e6s med og bliv meget klogere p\u00e5 scripts i denne artikel.","post_authors":[13325],"post_contact_section":{"post_contact_section_employee":13325,"post_contact_section_title":"Kom i dialog med os","post_contact_section_text":"Vi forst\u00e5r, at det kan v\u00e6re en stor beslutning at v\u00e6lge et bureau. Men h\u00e5nden p\u00e5 hjertet \u2013 var vi dig, s\u00e5 havde vi valgt os selv. Vores kunder kalder os Danmarks \u00e6rligste og mest n\u00e6rv\u00e6rende bureau \u2013 og hos os finder du specialister, der mestrer strategi og digital marketing. M\u00e5ske er vi ogs\u00e5 det helt rigtige bureau for dig? Kontakt os & find ud af det."}},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Script | Hvad er et script? \u2013 InboundCPH<\/title>\n<meta name=\"description\" content=\"Et script indenfor programmering er et lille stykke kode, som udf\u00f8re en specifik funktion p\u00e5 et website. L\u00e6s mere om scripts her.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/inboundcph.dk\/en\/-18\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Script\" \/>\n<meta property=\"og:description\" content=\"Et script indenfor programmering er et lille stykke kode, som udf\u00f8re en specifik funktion p\u00e5 et website. L\u00e6s mere om scripts her.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/inboundcph.dk\/en\/-18\/\" \/>\n<meta property=\"og:site_name\" content=\"InboundCPH\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inboundcph\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-13T09:11:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-26T01:51:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"663\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"inboundcphdk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"inboundcphdk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/\"},\"author\":{\"name\":\"inboundcphdk\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#\\\/schema\\\/person\\\/f7dd023be184b8a4619e4389f521f9b5\"},\"headline\":\"Script\",\"datePublished\":\"2020-03-13T09:11:54+00:00\",\"dateModified\":\"2024-04-26T01:51:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/\"},\"wordCount\":498,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/blog-google-ads-raadgivning-6.jpg\",\"articleSection\":[\"Teknisk SEO\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/\",\"url\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/\",\"name\":\"Script | Hvad er et script? \u2013 InboundCPH\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/blog-google-ads-raadgivning-6.jpg\",\"datePublished\":\"2020-03-13T09:11:54+00:00\",\"dateModified\":\"2024-04-26T01:51:52+00:00\",\"description\":\"Et script indenfor programmering er et lille stykke kode, som udf\u00f8re en specifik funktion p\u00e5 et website. L\u00e6s mere om scripts her.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/inboundcph.dk\\\/script\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#primaryimage\",\"url\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/blog-google-ads-raadgivning-6.jpg\",\"contentUrl\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/blog-google-ads-raadgivning-6.jpg\",\"width\":1400,\"height\":663},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/inboundcph.dk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#website\",\"url\":\"https:\\\/\\\/inboundcph.dk\\\/\",\"name\":\"InboundCPH\",\"description\":\"Specialister i digital marketing\",\"publisher\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/inboundcph.dk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#organization\",\"name\":\"InboundCPH A\\\/S\",\"alternateName\":\"InboundCPH\",\"url\":\"https:\\\/\\\/inboundcph.dk\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/logo-dark-med-ikon_20211_new.webp\",\"contentUrl\":\"https:\\\/\\\/inboundcph.dk\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/logo-dark-med-ikon_20211_new.webp\",\"width\":550,\"height\":109,\"caption\":\"InboundCPH A\\\/S\"},\"image\":{\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inboundcph\",\"https:\\\/\\\/dk.linkedin.com\\\/company\\\/inbound-cph\"],\"email\":\"ir@inboundcph.dk\",\"telephone\":\"27297720\",\"legalName\":\"InboundCPH A\\\/S\",\"foundingDate\":\"2013-02-03\",\"vatID\":\"DK39607255\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"value\":\"30\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/inboundcph.dk\\\/#\\\/schema\\\/person\\\/f7dd023be184b8a4619e4389f521f9b5\",\"name\":\"inboundcphdk\",\"sameAs\":[\"https:\\\/\\\/inboundcph.dk\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Script | What is a script? - InboundCPH","description":"A script in programming is a small piece of code that performs a specific function on a website. Read more about scripts here.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/inboundcph.dk\/en\/-18\/","og_locale":"en_US","og_type":"article","og_title":"Script","og_description":"Et script indenfor programmering er et lille stykke kode, som udf\u00f8re en specifik funktion p\u00e5 et website. L\u00e6s mere om scripts her.","og_url":"https:\/\/inboundcph.dk\/en\/-18\/","og_site_name":"InboundCPH","article_publisher":"https:\/\/www.facebook.com\/inboundcph","article_published_time":"2020-03-13T09:11:54+00:00","article_modified_time":"2024-04-26T01:51:52+00:00","og_image":[{"width":1400,"height":663,"url":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg","type":"image\/jpeg"}],"author":"inboundcphdk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"inboundcphdk","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/inboundcph.dk\/script\/#article","isPartOf":{"@id":"https:\/\/inboundcph.dk\/script\/"},"author":{"name":"inboundcphdk","@id":"https:\/\/inboundcph.dk\/#\/schema\/person\/f7dd023be184b8a4619e4389f521f9b5"},"headline":"Script","datePublished":"2020-03-13T09:11:54+00:00","dateModified":"2024-04-26T01:51:52+00:00","mainEntityOfPage":{"@id":"https:\/\/inboundcph.dk\/script\/"},"wordCount":498,"commentCount":0,"publisher":{"@id":"https:\/\/inboundcph.dk\/#organization"},"image":{"@id":"https:\/\/inboundcph.dk\/script\/#primaryimage"},"thumbnailUrl":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg","articleSection":["Teknisk SEO"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/inboundcph.dk\/script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/inboundcph.dk\/script\/","url":"https:\/\/inboundcph.dk\/script\/","name":"Script | What is a script? - InboundCPH","isPartOf":{"@id":"https:\/\/inboundcph.dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/inboundcph.dk\/script\/#primaryimage"},"image":{"@id":"https:\/\/inboundcph.dk\/script\/#primaryimage"},"thumbnailUrl":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg","datePublished":"2020-03-13T09:11:54+00:00","dateModified":"2024-04-26T01:51:52+00:00","description":"A script in programming is a small piece of code that performs a specific function on a website. Read more about scripts here.","breadcrumb":{"@id":"https:\/\/inboundcph.dk\/script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/inboundcph.dk\/script\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/inboundcph.dk\/script\/#primaryimage","url":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg","contentUrl":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/blog-google-ads-raadgivning-6.jpg","width":1400,"height":663},{"@type":"BreadcrumbList","@id":"https:\/\/inboundcph.dk\/script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/inboundcph.dk\/"},{"@type":"ListItem","position":2,"name":"Script"}]},{"@type":"WebSite","@id":"https:\/\/inboundcph.dk\/#website","url":"https:\/\/inboundcph.dk\/","name":"InboundCPH","description":"Digital marketing specialists","publisher":{"@id":"https:\/\/inboundcph.dk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/inboundcph.dk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/inboundcph.dk\/#organization","name":"InboundCPH A\/S","alternateName":"InboundCPH","url":"https:\/\/inboundcph.dk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/inboundcph.dk\/#\/schema\/logo\/image\/","url":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/logo-dark-med-ikon_20211_new.webp","contentUrl":"https:\/\/inboundcph.dk\/wp-content\/uploads\/2024\/04\/logo-dark-med-ikon_20211_new.webp","width":550,"height":109,"caption":"InboundCPH A\/S"},"image":{"@id":"https:\/\/inboundcph.dk\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inboundcph","https:\/\/dk.linkedin.com\/company\/inbound-cph"],"email":"ir@inboundcph.dk","telephone":"27297720","legalName":"InboundCPH A\/S","foundingDate":"2013-02-03","vatID":"DK39607255","numberOfEmployees":{"@type":"QuantitativeValue","value":"30"}},{"@type":"Person","@id":"https:\/\/inboundcph.dk\/#\/schema\/person\/f7dd023be184b8a4619e4389f521f9b5","name":"inboundcphdk","sameAs":["https:\/\/inboundcph.dk"]}]}},"_links":{"self":[{"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/posts\/13998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/comments?post=13998"}],"version-history":[{"count":0,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/posts\/13998\/revisions"}],"acf:post":[{"embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/employee\/13325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/media\/15231"}],"wp:attachment":[{"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/media?parent=13998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/categories?post=13998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inboundcph.dk\/en\/wp-json\/wp\/v2\/tags?post=13998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}