{"id":73,"date":"2023-08-11T16:55:28","date_gmt":"2023-08-11T19:55:28","guid":{"rendered":"https:\/\/urutaudev.com.br\/?p=73"},"modified":"2024-01-27T21:04:27","modified_gmt":"2024-01-28T00:04:27","slug":"como-manipular-um-componente-html-com-javascript","status":"publish","type":"post","link":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/","title":{"rendered":"Como manipular componente html com Javascript."},"content":{"rendered":"<h2>Neste tutorial mostro como adicionar ou remover um componente html com Javascript.<\/h2>\n<hr \/>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_74\" aria-describedby=\"caption-attachment-74\" style=\"width: 344px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-74 \" title=\"Como manipular componente html com Javascript.\" src=\"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript-300x169.webp\" alt=\"Como manipular componente html com Javascript.\" width=\"344\" height=\"194\" srcset=\"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript-300x169.webp 300w, https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp 533w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><figcaption id=\"caption-attachment-74\" class=\"wp-caption-text\">Como manipular componente html com Javascript.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-size: 18pt;\">Introdu\u00e7\u00e3o\u00a0<\/span><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">Este tutorial tem como objetivo mostrar como manipular componente <strong>Html<\/strong> com <a href=\"https:\/\/urutaudev.com.br\/index.php\/category\/tutorias\/javascript\/\"><strong>Javascript<\/strong><\/a>, ser\u00e1 um breve tutorial utilizando os conceitos de manipula\u00e7\u00e3o do <strong>dom<\/strong> do <a href=\"https:\/\/urutaudev.com.br\/index.php\/category\/tutorias\/javascript\/\"><strong>Javascript<\/strong><\/a>.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">O intuito \u00e9 demonstrar\u00a0 de uma forma r\u00e1pida, pratica e f\u00e1cil de como podemos manipular os componentes do <strong>Html<\/strong> utilizando apenas o <strong><a href=\"https:\/\/urutaudev.com.br\/index.php\/category\/tutorias\/javascript\/\">Javascript<\/a>.\u00a0<\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Pois aprender como manipular os componentes do Html \u00e9 essencial para todo programador Frontend, que deseja construir aplica\u00e7\u00f5es din\u00e2micas.\u00a0 \u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>Como adicionar um componente Html utilizando <a href=\"https:\/\/urutaudev.com.br\/index.php\/category\/tutorias\/javascript\/\">Javascript<\/a><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">Para execu\u00e7\u00e3o deste tutorial vou utilizar a fun\u00e7\u00e3o <code><b>createElement()<\/b><\/code> do javascript, para criar o elemento que ser\u00e1 inserido na p\u00e1gina e irei utilizar tamb\u00e9m a fun\u00e7\u00e3o <code><b>appendChild()<\/b><\/code>, que ser\u00e1 respons\u00e1vel por adicionar o elemento criado ao corpo de outro elemento.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Logo abaixo mostro o c\u00f3digo que criei com a fun\u00e7\u00e3o respons\u00e1vel por\u00a0 adicionar um elemento a uma <strong>div<\/strong>:<\/span><\/p>\n<p>&nbsp;<\/p>\n<pre><code>    function adicionarComponente() {\t\t\t\t\t\t\t\t\t\t\r\n\r\n        \/\/ Obt\u00e9m o elemento pai \r\n        const elementoPai = document.getElementById('elementoPai');\r\n\r\n        \/\/ Criar o elemento\r\n        const elementoFilho = document.createElement('button');\r\n\r\n        \/\/Adiciona os atributos do elemento\r\n        elementoFilho.id \t\t\t= \"elementoFilho\";\r\n        elementoFilho.innerHTML \t= \"bot\u00e3o teste\";\r\n        elementoFilho.type \t\t\t= \"button\";\r\n        elementoFilho.class \t\t= \"btn-impressao\";\r\n\r\n        \/\/ Insere (anexar) o elemento filho (botao) ao elemento pai (div)\r\n        elementoPai.appendChild(elementoFilho);           \r\n\r\n    };\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>Vamos para explica\u00e7\u00e3o da fun\u00e7\u00e3o que acabei de criar:<\/h3>\n<ol>\n<li><span style=\"font-size: 14pt;\">No inicio da fun\u00e7\u00e3o obtemos o id do elemento pai utilizando para isso\u00a0 a fun\u00e7\u00e3o <code><b>getElementById(elementoPai)<\/b><\/code>;<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Logo depois crio o elemento filho que ser\u00e1 adicionado ao elemento pai com a fun\u00e7\u00e3o <code><b>createElement('button'),<\/b><\/code> neste caso ser\u00e1 criado no elemento pai um bot\u00e3o;<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Em seguida atribuo os atributos do elemento filho (button) criado,\u00a0 no elemento filho defino os atributos\u00a0 <code><b>tipo(type), a class do css(class) , o valor(innerHTML) e o id(id)<\/b><\/code>;<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">\u00a0E por \u00faltimo insiro o elemento criado(elementoFilho) ao elemento pai com a fun\u00e7\u00e3o<code>appendChild(elementoFilho);<\/code><\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>Pronto com isso j\u00e1 podemos adicionar a fun\u00e7\u00e3o que remover\u00e1 um componente html utilizando <a href=\"https:\/\/urutaudev.com.br\/index.php\/category\/tutorias\/javascript\/\">Javascript<\/a><\/h3>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">Para conseguirmos remover um elemento html utilizando o Javascript vamos utilizar a fun\u00e7\u00e3o <code><b>remove()<\/b><\/code> que \u00e9 disponibilizada pelo Javascript.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Logo abaixo mostro a fun\u00e7\u00e3o que criei para remover um elemento html:<\/span><\/p>\n<p>&nbsp;<\/p>\n<pre><span style=\"font-size: 14pt;\"><code>function removerComponente() {\t\r\n                \r\n  document.getElementById(\"elementoFilho\").remove();\r\n                \r\n};\r\n<\/code><\/span><\/pre>\n<p>&nbsp;<\/p>\n<h3>Vamos para explica\u00e7\u00e3o da fun\u00e7\u00e3o acima:<\/h3>\n<p><span style=\"font-size: 14pt;\">Ao implementar a fun\u00e7\u00e3o acima foi utilizei a fun\u00e7\u00e3o <code>getElementById()<\/code>,\u00a0 que ser\u00e1 respons\u00e1vel por obter o componente a ser removido passando como parametro a informa\u00e7\u00e3o do id deste elemento<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">E junto com a fun\u00e7\u00e3o <code>getElementById<\/code> utilizo a fun\u00e7\u00e3o <code>remove()<\/code>,\u00a0 que ser\u00e1 respons\u00e1vel por remover o elemento Html da tela.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>Conclus\u00e3o<\/h2>\n<p><span style=\"font-size: 14pt;\">Este foi um breve exemplo de como podemos adicionar ou remover um elemento de uma p\u00e1gina em Html, logo abaixo mostro o c\u00f3digo completo que foi utilizado neste tutorial.<\/span><\/p>\n<p>&nbsp;<\/p>\n<pre><code>&lt;html&gt;\r\n&lt;head&gt;   \r\n    &lt;title&gt;Document&lt;\/title&gt;\r\n\r\n    &lt;script type=\"text\/javascript\" &gt;\t\t\r\n\t\t\r\n        function removerComponente() {\t                \r\n            document.getElementById(\"elementoFilho\").remove();            \r\n        };\r\n\r\n        function adicionarComponente() {\t\t\t\t\t\t\t\t\t\t\r\n    \r\n            \/\/ Obt\u00e9m o elemento pai \r\n            const elementoPai = document.getElementById('elementoPai');\r\n\r\n            \/\/ Criar o elemento\r\n            const elementoFilho = document.createElement('button');\r\n\r\n            \/\/Adiciona os atributos do elemento\r\n            elementoFilho.id \t\t\t= \"elementoFilho\";\r\n            elementoFilho.innerHTML \t= \"bot\u00e3o teste\";\r\n            elementoFilho.type \t\t\t= \"button\";\r\n            elementoFilho.class \t\t= \"btn-impressao\";\r\n\r\n            \/\/ Insere (anexar) o elemento filho (botao) ao elemento pai (div)\r\n            elementoPai.appendChild(elementoFilho);   \r\n        };    \r\n\r\n&lt;\/script&gt;\r\n\r\n&lt;\/head&gt;\r\n    &lt;body&gt;\r\n\r\n        &lt;button type=\"button\"\r\n                  onClick=\"adicionarComponente();\" &gt;\r\n            Adicionar Componente \r\n        &lt;\/button&gt;\r\n\r\n        &lt;button type=\"button\"\r\n                  onClick=\"removerComponente();\" &gt;\r\n          Remover Componente\r\n        &lt;\/button&gt;\r\n\r\n        &lt;div id=\"elementoPai\" &gt;\r\n\t\t\t&lt;button  type=\"button\" id=\"elementoFilho\" &gt;bot\u00e3o teste&lt;\/button&gt;\t\t\t\r\n\t\t&lt;\/div&gt;\r\n        \r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h2>Refer\u00eancias:<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Guide\" target=\"_blank\" rel=\"noopener\">Guia do Desenvolvedor<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Neste tutorial mostro como adicionar ou remover um componente html com Javascript. &nbsp; &nbsp; Introdu\u00e7\u00e3o\u00a0 &nbsp; Este tutorial tem como<\/p>\n","protected":false},"author":1,"featured_media":74,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[14],"tags":[27,26,18],"class_list":["post-73","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-html","tag-javascript","tag-tutorias"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como manipular componente html com Javascript. - UrutauDev<\/title>\n<meta name=\"description\" content=\"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como manipular componente html com Javascript. - UrutauDev\" \/>\n<meta property=\"og:description\" content=\"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"UrutauDev\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-11T19:55:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-28T00:04:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"533\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"C. Junior\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"C. Junior\" \/>\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:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/\"},\"author\":{\"name\":\"C. Junior\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#\\\/schema\\\/person\\\/7e321618d23a158d5a42d5cfbdd99dd6\"},\"headline\":\"Como manipular componente html com Javascript.\",\"datePublished\":\"2023-08-11T19:55:28+00:00\",\"dateModified\":\"2024-01-28T00:04:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/\"},\"wordCount\":420,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/html-javascript.webp\",\"keywords\":[\"html\",\"javascript\",\"tutorias\"],\"articleSection\":[\"Javascript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/\",\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/\",\"name\":\"Como manipular componente html com Javascript. - UrutauDev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/html-javascript.webp\",\"datePublished\":\"2023-08-11T19:55:28+00:00\",\"dateModified\":\"2024-01-28T00:04:27+00:00\",\"description\":\"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/html-javascript.webp\",\"contentUrl\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/html-javascript.webp\",\"width\":533,\"height\":300,\"caption\":\"html javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/2023\\\/08\\\/11\\\/como-manipular-um-componente-html-com-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/urutaudev.com.br\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como manipular componente html com Javascript.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#website\",\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/\",\"name\":\"UrutauDev\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/urutaudev.com.br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#organization\",\"name\":\"UrutauDev\",\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cropped-urutau-dev-logo.png\",\"contentUrl\":\"https:\\\/\\\/urutaudev.com.br\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cropped-urutau-dev-logo.png\",\"width\":100,\"height\":84,\"caption\":\"UrutauDev\"},\"image\":{\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/urutaudev.com.br\\\/#\\\/schema\\\/person\\\/7e321618d23a158d5a42d5cfbdd99dd6\",\"name\":\"C. Junior\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g\",\"caption\":\"C. Junior\"},\"sameAs\":[\"http:\\\/\\\/urutaudev.com.br\",\"instagram.com\\\/urutautec\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC8pDLb5GaYBAoWwQkIzrhRw\"],\"url\":\"https:\\\/\\\/urutaudev.com.br\\\/index.php\\\/author\\\/urutaudev-com-br\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como manipular componente html com Javascript. - UrutauDev","description":"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.","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:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Como manipular componente html com Javascript. - UrutauDev","og_description":"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.","og_url":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/","og_site_name":"UrutauDev","article_published_time":"2023-08-11T19:55:28+00:00","article_modified_time":"2024-01-28T00:04:27+00:00","og_image":[{"width":533,"height":300,"url":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp","type":"image\/webp"}],"author":"C. Junior","twitter_card":"summary_large_image","twitter_misc":{"Written by":"C. Junior","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#article","isPartOf":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/"},"author":{"name":"C. Junior","@id":"https:\/\/urutaudev.com.br\/#\/schema\/person\/7e321618d23a158d5a42d5cfbdd99dd6"},"headline":"Como manipular componente html com Javascript.","datePublished":"2023-08-11T19:55:28+00:00","dateModified":"2024-01-28T00:04:27+00:00","mainEntityOfPage":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/"},"wordCount":420,"commentCount":0,"publisher":{"@id":"https:\/\/urutaudev.com.br\/#organization"},"image":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp","keywords":["html","javascript","tutorias"],"articleSection":["Javascript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/","url":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/","name":"Como manipular componente html com Javascript. - UrutauDev","isPartOf":{"@id":"https:\/\/urutaudev.com.br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#primaryimage"},"image":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp","datePublished":"2023-08-11T19:55:28+00:00","dateModified":"2024-01-28T00:04:27+00:00","description":"Este tutorial tem como objetivo mostrar como manipular componente Html com Javascript, utilizando os conceitos de manipula\u00e7\u00e3o do dom.","breadcrumb":{"@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#primaryimage","url":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp","contentUrl":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/html-javascript.webp","width":533,"height":300,"caption":"html javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/urutaudev.com.br\/index.php\/2023\/08\/11\/como-manipular-um-componente-html-com-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/urutaudev.com.br\/"},{"@type":"ListItem","position":2,"name":"Como manipular componente html com Javascript."}]},{"@type":"WebSite","@id":"https:\/\/urutaudev.com.br\/#website","url":"https:\/\/urutaudev.com.br\/","name":"UrutauDev","description":"","publisher":{"@id":"https:\/\/urutaudev.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/urutaudev.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/urutaudev.com.br\/#organization","name":"UrutauDev","url":"https:\/\/urutaudev.com.br\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/urutaudev.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/cropped-urutau-dev-logo.png","contentUrl":"https:\/\/urutaudev.com.br\/wp-content\/uploads\/2023\/08\/cropped-urutau-dev-logo.png","width":100,"height":84,"caption":"UrutauDev"},"image":{"@id":"https:\/\/urutaudev.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/urutaudev.com.br\/#\/schema\/person\/7e321618d23a158d5a42d5cfbdd99dd6","name":"C. Junior","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e7df4c63012e2f6991311d4037bdc57752b996058cf1396747a7ab74e8ac032e?s=96&d=mm&r=g","caption":"C. Junior"},"sameAs":["http:\/\/urutaudev.com.br","instagram.com\/urutautec","https:\/\/www.youtube.com\/channel\/UC8pDLb5GaYBAoWwQkIzrhRw"],"url":"https:\/\/urutaudev.com.br\/index.php\/author\/urutaudev-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":8,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions\/299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/media\/74"}],"wp:attachment":[{"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/urutaudev.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}