# Sending/receiving vars using JS across frames

**URL:** <https://forum.kirupa.com/t/sending-receiving-vars-using-js-across-frames/45165>\
**Category:** Uncategorized\
**Created:** [March 11, 2004, 4:20pm UTC](https://forum.kirupa.com/t/sending-receiving-vars-using-js-across-frames/45165 "2004-03-11T16:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhombusleech](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@rhombusleech](https://forum.kirupa.com/u/rhombusleech)\
**Post date:** [March 11, 2004, 4:20pm UTC](https://forum.kirupa.com/t/sending-receiving-vars-using-js-across-frames/45165/1 "2004-03-11T16:20:11Z")

</div>

I have a frameset set up with two frames, top and main. I have a movie in the main frame that needs to send a variable to the top frame when a button is clicked. Then when I load a new movie into the main frame I need it to read the variable from the top frame.

I think I have to use fsCommand to send and receive the variable, but I’m not sure how to do it. Searching the web I have found how to send it to the same page, but not a seperate frame. Help, please?

Thanks in advance,  
rhombusleech

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 4:26pm UTC](https://forum.kirupa.com/t/sending-receiving-vars-using-js-across-frames/45165/2 "2004-03-11T16:26:14Z")

</div>

I think there are three things you could do with this situation.  
fscommand  
javascript  
localConnect

I just saw a thread the other day, on fscommand vs javascript method
