Lets say I have a thing that looks like this: (roughly)
Code: Select all
<script>
function checkvalue (x, y) {
cellh = 'document.row' + y + '.col' + x + 'h.value'
alert(cellh);
}
</script>
<form name="row1"><input name="col1"><input name="col1"></form>
<form name="checkvalueform">
X: <input type="text" name="x"> Y: <input type="text" name="y">
<input type="button" value="check value" onclick="checkvalue(document.checkvalueform.x.value, document.checkvalueform.y.value)">
</form>