# Sending/receiving vars using JS across frames

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