
Object Required "txtPrice"
rule 1 : don't use VBScript client-side. it's not interoperable. you're locking out Netscape, Mozilla, Opera, anything on a Mac, anything on Linux/Unix/BSD, basically anything non M$
rule 2 : qulaify your references
<INPUT TYPE=text NAME=textPrice VALUE="700">
<SCRIPT Language="VBScript">
Sub cmdCal_OnClick()
msgbox document.formnamehere.txtPrice.Value
End Sub
</SCRIPT>
which, in javascript, would be
<INPUT TYPE="text" NAME="textPrice" VALUE="700">
<input type="button" onclick="myFunction()">
<SCRIPT Language="JavaScript">
function myFunction() {
alert(document.forms['formName'].elements['txtPrice'].Value);
Quote:
}
</SCRIPT>
Atrax
http://www.infinitemonkeys.ws/
http://www.sydneypubguide.net/
http://www.atrax.ws/
me : "RTFM"
you : "duh?"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!