[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
1. I have a problem with name attribute of the form object with Netscape
2.0 beta 6.
HTML script below demonstrates it.
<form method="post" NAME="frm_calc">
<input type="button" name="btn_1" value="Button Name"
onClick="alert(this.form.btn_1.name)">
<input type="button" name="btn_2" value="Form Name"
onClick="alert(this.form.name)">
</form>
Click on the 'Button Name' button returns message 'btn_1' while click on
'Form Name' button return '<undefined>'. It is possible to assign value to
form.name
manually.
Does anybody know anything about this problem? Is this Netscape bug?
2. Is there any way to localize variables inside the function?
Sincerely yours,
Efim Mazour