Javascript: passing vars to another frame?

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