{"id":8644,"date":"2024-01-19T17:54:00","date_gmt":"2024-01-19T17:54:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8644"},"modified":"2024-01-22T15:55:11","modified_gmt":"2024-01-22T10:55:11","slug":"javascript-move-focus-with-arrow-keys","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/","title":{"rendered":"JavaScript Move Focus with Arrow Keys"},"content":{"rendered":"<p>The JavaScript code snippet helps you to move focus with the keyboard arrow keys. It enables users to navigate through a table using arrow keys, specifically left, right, up, and down arrows. This code improves accessibility and ease of use for individuals who rely on keyboard navigation.<\/p>\n<p>You can enhance keyboard navigation on web applications. It&#8217;s designed to be programmatically integrated into your projects that involve <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Global_attributes\/tabindex\" target=\"_blank\" rel=\"noopener\">tabindex attribute<\/a>, tables, or grids. By doing so, you can significantly improve the user experience, especially for those who rely on keyboard navigation or have mobility challenges.<\/p>\n<h2>How to Move Focus with Arrow Keys using JavaScript<\/h2>\n<p>1. First, create an HTML structure that includes your table. Ensure that each table cell (td) where you want to enable keyboard navigation has a <code>\"tabindex\"<\/code> attribute. Here&#8217;s an example:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;a href=\"#\" tabindex=\"1\"&gt;Start&lt;\/a&gt;\r\n&lt;p&gt;Tab into first cell in table.&lt;\/p&gt;\r\n&lt;p&gt;Then, use arrow keys to change focus on cell.&lt;\/p&gt;\r\n&lt;p&gt;Once you're in a cell you can tab to focus on the links inside.&lt;\/p&gt;\r\n&lt;p&gt;Then, you can tab out of the cell and resume navigating with your arrows.&lt;\/p&gt;\r\n&lt;table id=\"myTable\"&gt;\r\n  &lt;tr id=\"l01\"&gt;\r\n    &lt;td id=\"l01_1\" tabindex=\"1\"&gt;&lt;a href=\"#\"&gt;one&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/a&gt;&lt;\/td&gt;\r\n    &lt;td id=\"l01_2\" tabindex=\"0\"&gt;two-&lt;a href=\"#\"&gt;x&lt;\/a&gt;&lt;\/td&gt;\r\n    &lt;td id=\"l01_3\" tabindex=\"0\"&gt;three&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr id=\"l02\"&gt;\r\n    &lt;td id=\"l02_1\" tabindex=\"0\"&gt;one -&lt;a href=\"#\"&gt;x&lt;\/a&gt;&lt;\/td&gt;\r\n    &lt;td id=\"l02_2\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;two&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n    &lt;td id=\"l02_3\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;three&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr id=\"l03\"&gt;\r\n    &lt;td id=\"l03_1\" tabindex=\"0\"&gt;one -&lt;a href=\"#\"&gt;x&lt;\/a&gt;&lt;\/td&gt;\r\n    &lt;td id=\"l03_2\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;two&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n    &lt;td id=\"l03_3\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;three&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr id=\"l04\"&gt;\r\n    &lt;td id=\"l04_1\" tabindex=\"0\"&gt;one -&lt;a href=\"#\"&gt;x&lt;\/a&gt;&lt;\/td&gt;\r\n    &lt;td id=\"l04_2\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;two&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n    &lt;td id=\"l04_3\" tabindex=\"0\"&gt;&lt;a href=\"#\"&gt;three&lt;\/a&gt;-&lt;a href=\"#\"&gt;x&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n<\/pre>\n<p>2. You can apply custom CSS to style your table and cells. (Optional)<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n  font-family: \"Arial\";\r\n}\r\nbody table td {\r\n  padding: 10px;\r\n  background: pink;\r\n  width: 100px;\r\n}<\/pre>\n<p>3. Copy and paste the following JavaScript code into a <code>&lt;script&gt;<\/code> tag within your HTML document, preferably just before the closing <code>&lt;\/body&gt;<\/code> tag. It listens for arrow key events (left, right, up, and down) within the table. When an arrow key is pressed, the code shifts the focus to the neighboring cell in the corresponding direction.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var myTable = document.getElementById('myTable');\r\nmyTable.onkeydown = function(event) {\r\n  var numberOfCells = document.getElementById('myTable').getElementsByTagName(\"td\").length;\r\n  if(event.keyCode == 37) {\r\n    console.log('left');\r\n    document.getElementById(event.target.id).blur()\r\n    var currentfocus = event.target.id.split('');\r\n    currentfocus.splice(currentfocus.length-1, 1, +currentfocus[currentfocus.length - 1]-1);\r\n    var newfocus = currentfocus.join('');\r\n    document.getElementById(newfocus).focus()\r\n  }\r\n  \r\n  \/\/\/\/\/\/\/\/\/\/\/\/\r\n  else if (event.keyCode == 39) {\r\n    console.log('right');\r\n    document.getElementById(event.target.id).blur()\r\n    var currentfocus = event.target.id.split('');\r\n    currentfocus.splice(currentfocus.length-1, 1, +currentfocus[currentfocus.length - 1]+1);\r\n    var newfocus = currentfocus.join('');\r\n    document.getElementById(newfocus).focus()\r\n  }\r\n  \/\/\/\/\/\/\/\/\/\/\/\/\r\n  \r\n  else if (event.keyCode == 38) {\r\n    console.log('up');\r\n    document.getElementById(event.target.id).blur()\r\n    var currentfocus = event.target.id.split('');\r\n    currentfocus.splice(2, 1, +currentfocus[2]-1);\r\n    var newfocus = currentfocus.join('');\r\n    document.getElementById(newfocus).focus();\r\n  }\r\n  else if (event.keyCode == 40) {\r\n    console.log('down');\r\n    document.getElementById(event.target.id).blur()\r\n    var currentfocus = event.target.id.split('');\r\n    currentfocus.splice(2,1, +currentfocus[2]+1);\r\n    var newfocus = currentfocus.join('');\r\n    document.getElementById(newfocus).focus();\r\n  }\r\n};<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a functionality to move focus with arrow keys. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The JavaScript code snippet helps you to move focus with the keyboard arrow keys. It enables users to navigate through&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8655,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-8644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Move Focus with Arrow Keys &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. 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\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Move Focus with Arrow Keys &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\" \/>\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-19T17:54:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:55:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.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\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Move Focus with Arrow Keys\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\"},\"wordCount\":231,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\",\"name\":\"JavaScript Move Focus with Arrow Keys &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:11+00:00\",\"description\":\"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Move Focus with Arrow Keys\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Move Focus with Arrow Keys\"}]},{\"@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 Move Focus with Arrow Keys &#8212; CodeHim","description":"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. 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\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Move Focus with Arrow Keys &#8212; CodeHim","og_description":"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-19T17:54:00+00:00","article_modified_time":"2024-01-22T10:55:11+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.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\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Move Focus with Arrow Keys","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:11+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/"},"wordCount":231,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/","url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/","name":"JavaScript Move Focus with Arrow Keys &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:11+00:00","description":"Here is a free code snippet to create a JavaScript Move Focus with Arrow Keys. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/JavaScript-Move-Focus-with-Arrow-Keys.png","width":1280,"height":960,"caption":"JavaScript Move Focus with Arrow Keys"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-move-focus-with-arrow-keys\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Move Focus with Arrow Keys"}]},{"@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":1850,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8644","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=8644"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8644\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8655"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}