# Como adicionar JS no After Header?

**URL:** <https://meta.discourse.org/t/how-to-add-js-in-after-header/231100>\
**Category:** Product Support\
**Created:** [Junho 25, 2022, 7:34pm UTC](https://meta.discourse.org/t/how-to-add-js-in-after-header/231100 "2022-06-25T19:34:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DragonByte](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DragonByte](https://meta.discourse.org/u/DragonByte)\
**Post date:** [Junho 25, 2022, 7:34pm UTC](https://meta.discourse.org/t/how-to-add-js-in-after-header/231100/1 "2022-06-25T19:34:55Z")

</div>

Olá!

Quero adicionar um script em “After Header” no meu componente de tema, mas isso não funciona.

código:

```html
<button type="button" class="btn btn-outline btn-small" id="Send">Enviar</button>

<script>
var btn = document.querySelector('#Send');

btn.addEventListener('click', function(e) {
  e.preventDefault();
  
  this.disabled = true;
  
  setTimeout(function(){ btn.disabled=false; }, 10000);
});
</script>

```

O código funciona em outros blocos (Head, Body), mas preciso adicioná-lo em After Header.

Por favor, ajude-me, como posso fazer isso?

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-js-in-after-header/231100)._
