{"id":9489,"date":"2024-01-09T18:03:00","date_gmt":"2024-01-09T18:03:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9489"},"modified":"2024-01-22T16:05:03","modified_gmt":"2024-01-22T11:05:03","slug":"javascript-copy-to-clipboard-with-callback-function","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/","title":{"rendered":"JavaScript Copy to Clipboard with Callback Function"},"content":{"rendered":"<p>This JavaScript code provides a simple way to copy text to the clipboard when a specified element is clicked. It also supports a callback function for user feedback, ensuring smooth text copying. This code streamlines the clipboard copying process for enhanced user experience.<\/p>\n<p>You can use this code in websites or web applications to allow users to easily copy text to their clipboard with just a click. The optional callback function provides immediate feedback, ensuring users know their text has been copied successfully.<\/p>\n<h2>How to Create Copy To Clipboard with Callback Function in JavaScript<\/h2>\n<p>1. In your HTML code, create an element (e.g., a button or icon) that users will <a href=\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-button\/\" target=\"_blank\" rel=\"noopener\">click to copy text<\/a> to their clipboard. Give this element a unique ID.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link href=\"https:\/\/fonts.googleapis.com\/icon?family=Material+Icons|M+PLUS+Rounded+1c|Roboto+Mono\" rel=\"stylesheet\"&gt;\r\n&lt;div id=\"elementId\" class=\"iconcircle\"&gt;\r\n    &lt;i class=\"material-icons shadowicon\"&gt;file_copy&lt;\/i&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>2. Style the icon button using the following CSS styles: (Optional)<\/p>\n<pre class=\"prettyprint linenums lang-css\">.iconcircle {\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    height: 100px;\r\n    width: 100px;\r\n    background-color: rgb(38, 166, 154);\r\n    overflow: hidden;\r\n    border-radius: 50%;\r\n    cursor: pointer;\r\n    margin: 0 auto;\r\n}\r\n\r\n.iconcircle .shadowicon {\r\n    color: #fff;\r\n    font-size: 45px;\r\n    text-shadow: 1px 1px #00796b, 2px 2px #00796b, 3px 3px #00796b, 4px 4px #00796b, 5px 5px #00796b, 6px 6px #00796b, 7px 7px #00796b, 8px 8px #00796b, 9px 9px #00796b, 10px 10px #00796b, 11px 11px #00796b, 12px 12px #00796b, 13px 13px #00796b, 14px 14px #00796b, 15px 15px #00796b, 16px 16px #00796b, 17px 17px #00796b, 18px 18px #00796b, 19px 19px #00796b, 20px 20px #00796b, 21px 21px #00796b, 22px 22px #00796b, 23px 23px #00796b, 24px 24px #00796b, 25px 25px #00796b, 26px 26px #00796b, 27px 27px #00796b, 28px 28px #00796b, 29px 29px #00796b, 30px 30px #00796b, 31px 31px #00796b, 32px 32px #00796b, 33px 33px #00796b, 34px 34px #00796b, 35px 35px #00796b, 36px 36px #00796b, 37px 37px #00796b, 38px 38px #00796b, 39px 39px #00796b, 40px 40px #00796b, 41px 41px #00796b, 42px 42px #00796b, 43px 43px #00796b, 44px 44px #00796b, 45px 45px #00796b, 46px 46px #00796b, 47px 47px #00796b, 48px 48px #00796b, 49px 49px #00796b, 50px 50px #00796b, 51px 51px #00796b, 52px 52px #00796b, 53px 53px #00796b, 54px 54px #00796b, 55px 55px #00796b, 56px 56px #00796b, 57px 57px #00796b, 58px 58px #00796b, 59px 59px #00796b, 60px 60px #00796b, 61px 61px #00796b, 62px 62px #00796b, 63px 63px #00796b, 64px 64px #00796b, 65px 65px #00796b, 66px 66px #00796b, 67px 67px #00796b, 68px 68px #00796b, 69px 69px #00796b, 70px 70px #00796b, 71px 71px #00796b, 72px 72px #00796b, 73px 73px #00796b, 74px 74px #00796b, 75px 75px #00796b, 76px 76px #00796b, 77px 77px #00796b, 78px 78px #00796b, 79px 79px #00796b, 80px 80px #00796b, 81px 81px #00796b, 82px 82px #00796b, 83px 83px #00796b, 84px 84px #00796b, 85px 85px #00796b, 86px 86px #00796b, 87px 87px #00796b, 88px 88px #00796b, 89px 89px #00796b, 90px 90px #00796b, 91px 91px #00796b, 92px 92px #00796b, 93px 93px #00796b, 94px 94px #00796b, 95px 95px #00796b, 96px 96px #00796b, 97px 97px #00796b, 98px 98px #00796b, 99px 99px #00796b, 100px 100px #00796b, 101px 101px #00796b, 102px 102px #00796b, 103px 103px #00796b, 104px 104px #00796b, 105px 105px #00796b, 106px 106px #00796b, 107px 107px #00796b, 108px 108px #00796b, 109px 109px #00796b, 110px 110px #00796b, 111px 111px #00796b, 112px 112px #00796b, 113px 113px #00796b, 114px 114px #00796b, 115px 115px #00796b, 116px 116px #00796b, 117px 117px #00796b, 118px 118px #00796b, 119px 119px #00796b\r\n}\r\n<\/pre>\n<p>3. Finally, add the JavaScript code to your project. You can place it in a script tag within your HTML file or link an external JavaScript file. This code defines the <code>createCopy<\/code> function, so make sure it&#8217;s accessible in your project.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/\/the helper function\r\nlet createCopy = function(textToCopy, triggerElementId, callback = null) {\r\n  \/\/add event listner to elementtrigger\r\n  let trigger = document.getElementById(triggerElementId);\r\n  trigger.addEventListener(\"click\", function() {\r\n    \/\/create the readonly textarea with the text in it and hide it\r\n    let tarea = document.createElement(\"textarea\");\r\n    tarea.setAttribute(\"id\", triggerElementId + \"-copyarea\");\r\n    tarea.setAttribute(\"readonly\", \"readonly\");\r\n    tarea.setAttribute(\r\n      \"style\",\r\n      \"opacity: 0; position: absolute; z-index: -1; top: 0; left: -9999px;\"\r\n    );\r\n    tarea.appendChild(document.createTextNode(textToCopy));\r\n    document.body.appendChild(tarea);\r\n\r\n    \/\/select and copy the text in the readonly text area\r\n    tarea.select();\r\n    document.execCommand(\"copy\");\r\n\r\n    \/\/remove the element from the DOM\r\n    document.body.removeChild(tarea);\r\n\r\n    \/\/fire callback function if provided\r\n    if (typeof callback === \"function\" &amp;&amp; callback()) {\r\n      callback();\r\n    }\r\n  });\r\n};\r\n\r\n\r\n\/\/usage example\r\ncreateCopy('Sample text to copy', 'elementId', function () {\r\n    alert('A callback function to show your text was copied successfully!');\r\n});<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a copy to the clipboard feature with a callback function in JavaScript. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code provides a simple way to copy text to the clipboard when a specified element is clicked. It&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9503,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-9489","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-09T18:03:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:05:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Copy to Clipboard with Callback Function\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:05:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\"},\"wordCount\":212,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png\",\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\",\"url\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\",\"name\":\"JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:05:03+00:00\",\"description\":\"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Copy To Clipboard with Callback Function\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Copy to Clipboard with Callback Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim","description":"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.","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:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim","og_description":"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-09T18:03:00+00:00","article_modified_time":"2024-01-22T11:05:03+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Copy to Clipboard with Callback Function","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:05:03+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/"},"wordCount":212,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png","articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/","url":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/","name":"JavaScript Copy to Clipboard with Callback Function &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:05:03+00:00","description":"Here is a free code snippet to create a JavaScript Copy to Clipboard with Callback Function. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Sample-text-to-copy.png","width":1280,"height":960,"caption":"JavaScript Copy To Clipboard with Callback Function"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/javascript-copy-to-clipboard-with-callback-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"JavaScript Copy to Clipboard with Callback Function"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1312,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9489"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9489\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9503"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}