How do I refer/integrate a Javascript-Variable to a Javascript-"Link" like
parent.frames[0].document.forms[0].VARIABLE_CLICK.value = 'X';
More details if needed:
I need to use a last-century frameset (local server, same origins).
frame[1] passes Button-onClick-function (abdamit) data (here: X) to frame[0] and a form there with e.g. 10 form-Elements (here: input/text). Fine.
Theese Elements receiving this data are named/ids 1 to 10. I added a Button-onClick-Counter, value stored in VARIABLE_CLICK and I can pass the Variable-value succesfully instead of „X“. Fine, too.
I need to implement this Variable in the "Link" to call the corresponding Element via ist Name or ID.. I tried much ---(["+.--- which in very far away years helped me then, but now ... silly question?!
frame[0]
frame[1]
parent.frames[0].document.forms[0].VARIABLE_CLICK.value = 'X';
More details if needed:
I need to use a last-century frameset (local server, same origins).
frame[1] passes Button-onClick-function (abdamit) data (here: X) to frame[0] and a form there with e.g. 10 form-Elements (here: input/text). Fine.
Theese Elements receiving this data are named/ids 1 to 10. I added a Button-onClick-Counter, value stored in VARIABLE_CLICK and I can pass the Variable-value succesfully instead of „X“. Fine, too.
I need to implement this Variable in the "Link" to call the corresponding Element via ist Name or ID.. I tried much ---(["+.--- which in very far away years helped me then, but now ... silly question?!
frame[0]
Code:
<input type="text" name="1" id="1" value="">
<input type="text" name="2" id="2" value="">
<input type="text" name="3" id="3" value="">
ff
Code:
var VARIABLE_CLICK = 0;
function abdamit() {
VARIABLE_CLICK += 1;
…
parent.frames[0].document.forms[0].VARIABLE_CLICK.value = 'X';
…
<button onClick="abdamit();">BUTTONTEXT</button>