# getElementByName?

**URL:** <https://forums.fusetools.com/t/getelementbyname/7225>\
**Category:** How-to Discussions\
**Created:** [June 2, 2018, 4:54pm UTC](https://forums.fusetools.com/t/getelementbyname/7225 "2018-06-02T16:54:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![remnnis\_scion](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@remnnis\_scion](https://forums.fusetools.com/u/remnnis_scion)\
**Post date:** [June 2, 2018, 4:54pm UTC](https://forums.fusetools.com/t/getelementbyname/7225/1 "2018-06-02T16:54:43Z")

</div>

Hi,

I am trying to get the Position of an element on the screen and store in JavaScript, is there I a way I can reference it like the DOM in html.

Supposing my element is:

How do I do something like Rect.Position, or getElementByName(Rect).Position in Fuse JavaScript?

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [June 2, 2018, 4:59pm UTC](https://forums.fusetools.com/t/getelementbyname/7225/2 "2018-06-02T16:59:33Z")

</div>

Yes, check out [https://fuse-open.github.io/docs/fuse/elements/element/placed.html](https://fuse-open.github.io/docs/fuse/elements/element/placed.html)

---

<div class="post-metadata">

**Author:** ![remnnis\_scion](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@remnnis\_scion](https://forums.fusetools.com/u/remnnis_scion)\
**Post date:** [June 2, 2018, 5:07pm UTC](https://forums.fusetools.com/t/getelementbyname/7225/3 "2018-06-02T17:07:10Z")

</div>

I checked the link out and it seems the Placed Event only fires when the Element’s position is changed… What I want to do is get the position when the page loads.

Any way I can do this?

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [June 2, 2018, 6:10pm UTC](https://forums.fusetools.com/t/getelementbyname/7225/4 "2018-06-02T18:10:59Z")

</div>

Did you test it? It should fire also on the first layout.

---

<div class="post-metadata">

**Author:** ![remnnis\_scion](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@remnnis\_scion](https://forums.fusetools.com/u/remnnis_scion)\
**Post date:** [June 8, 2018, 4:10pm UTC](https://forums.fusetools.com/t/getelementbyname/7225/5 "2018-06-08T16:10:31Z")

</div>

Oh, yes I see now that it fires on first layout. Thank you so much!!!
