# JavaScript directly after tag \<bodi\>

**URL:** https://forums.realmacsoftware.com/t/javascript-directly-after-tag-bodi/5200
**Category:** RapidWeaver Classic
**Created:** [February 1, 2016, 10:16am UTC](https://forums.realmacsoftware.com/t/javascript-directly-after-tag-bodi/5200 "2016-02-01T10:16:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ODC](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@ODC](https://forums.realmacsoftware.com/u/ODC)
#### Post date: [February 1, 2016, 10:16am UTC](https://forums.realmacsoftware.com/t/javascript-directly-after-tag-bodi/5200/1 "2016-02-01T10:16:25Z")

</div>

Hello  
Command to place a JavaScript directly behind the tag?

Thank you very much:wink:

---

<div class="post-metadata">

### Author: ![ElliotEKJ](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/elliotekj/32/3705_2.png) [@ElliotEKJ](https://forums.realmacsoftware.com/u/ElliotEKJ)
#### Post date: [February 1, 2016, 10:46am UTC](https://forums.realmacsoftware.com/t/javascript-directly-after-tag-bodi/5200/2 "2016-02-01T10:46:15Z")

</div>

Hey @ODC,

What is it you are wanting to run after the opening `body` tag? The best place to run Javascript is just before the closing `body` tag or, if you really need to, in the `head`.

Both can be done very easily in RW 6 in the following window:

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/1/132b43909164d75982aeddaa31d33b0cf9b61f1b.png)

If you only want to load it on one page, you can do so in the inspector in either the “Header” or the “Javascript” tags. The same rules apply to these inputs as in the ones above.

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/4/490402b814beab2b02e51f31ceebdbaaa964659c.png)

Hope that helps,  
—E

---

<div class="post-metadata">

### Author: ![ODC](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@ODC](https://forums.realmacsoftware.com/u/ODC)
#### Post date: [February 1, 2016, 5:43pm UTC](https://forums.realmacsoftware.com/t/javascript-directly-after-tag-bodi/5200/3 "2016-02-01T17:43:22Z")

</div>

thank you very much:+1:
