@bals28mjkSep 02.2007 — #So all you want to do is get data from another frame when the link is clicked and add it to a text box?
[CODE]parent.framename.objFuncVarName[/CODE] So if you have a variable named "score" in your other frame, and want to update your text box just do:[CODE] reftotextbox.value += parent.framename.thescore[/CODE]
@mitchellauthorSep 02.2007 — #thanks for the help but that isnt what i whant althouh that has helped me a grate deal, i am after something so i have a text box in a frame called frame1.
for now i would be very happy if so when i click a link which for now goes to "#null" for testing purposes would add a number to it which is specified in the link.
so in the link i could put 6 and so it adds that number to the box to it is bacicly like a calculator but just keeps on adding numbers i say in the links code.
this looks like it needs a script to do the adding which when i try to make it dosnt work
@mitchellauthorSep 02.2007 — #hii, sorry about my explination i will try to explain.
all i want is a text box (with 0 to start) and a button and everytime you click the button it adds 5 to it, so i could click it 5 times and then 25 will be in the box.
that is the simple script i want and then i will be able to do all the frame stuff.
@bals28mjkSep 02.2007 — #Yes, that is a simple script.
1. Create a form
2. Create a function for the form in js
3. Reference the value in the form with getElementById
4. Add 5 to your referenced value
I want to see you at least attempt this, you won't learn as much if I were just to give you the code. If you get stuck or have a question about anything, don't be shy.