So, I'm fairly new to this and my code is as follows...
<script language="JavaS cript>
var oldValue
function focusElement(th eElement) {
oldValue = theElement.valu e;
return;
}
</script>
Then in the HTML, I have
<select size="1" id="ConfComment SELECT" name="ConfComme ntSELECT"
onfocus="return focusPrecedence (this);">
<option value="0"> - </option>
<option value="1">1</option>
<option value="2">2</option>
</select>
The <select> is with a <form><tr><td >, but I don't see how that would make a
difference. I started using the onchange="retur n blah-blah-blah(this);" and
that worked so I copied that to the onfocus. What I want to do is to
remember the value of the contents of the <select> before the user changes
it, and compare it to the new value.
However, I keep getting the following error
A Runtime Error has occurred.
Do you wish to Debug?
Line:22
Error: Object expected
What am I doing wrong ?
Thanks
Mike
<script language="JavaS cript>
var oldValue
function focusElement(th eElement) {
oldValue = theElement.valu e;
return;
}
</script>
Then in the HTML, I have
<select size="1" id="ConfComment SELECT" name="ConfComme ntSELECT"
onfocus="return focusPrecedence (this);">
<option value="0"> - </option>
<option value="1">1</option>
<option value="2">2</option>
</select>
The <select> is with a <form><tr><td >, but I don't see how that would make a
difference. I started using the onchange="retur n blah-blah-blah(this);" and
that worked so I copied that to the onfocus. What I want to do is to
remember the value of the contents of the <select> before the user changes
it, and compare it to the new value.
However, I keep getting the following error
A Runtime Error has occurred.
Do you wish to Debug?
Line:22
Error: Object expected
What am I doing wrong ?
Thanks
Mike
Comment