# Javascript: passing vars to another frame?

**URL:** <https://forum.kirupa.com/t/javascript-passing-vars-to-another-frame/178546>\
**Category:** web dev\
**Created:** [February 11, 2006, 8:05pm UTC](https://forum.kirupa.com/t/javascript-passing-vars-to-another-frame/178546 "2006-02-11T20:05:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreakSheep](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@FreakSheep](https://forum.kirupa.com/u/FreakSheep)\
**Post date:** [February 11, 2006, 8:05pm UTC](https://forum.kirupa.com/t/javascript-passing-vars-to-another-frame/178546/1 "2006-02-11T20:05:30Z")

</div>

Hey, I’m working with frames, and I was wondering if theres a way to pass variables to another page. I’m not very good with JS, so dont yell at me too much :ne:

Would I use something like…

parent.top.var1= “blah blah blah”;

(top being the frame i’m going after.)

Thanks,  
\_naaman
