my page was using frame to build up. the problem now are when i submit the form at the below frameset , i want to clear the field at the above frameset. b'cos contain 2 form right now, how to call another form object ? something like VB .. form1.txtfield.text , form2.txtfiled.text.. but this ways cannot used in java script. anyone call me? thank u
You will have to use javascript, unless you set the form to target the entire page, rather than just the bottom frame.
form.php <form action="method.php" method="post" name="otform" target="mainFrame">
method.php i use java script directly call the form.php object <script> otform.hours.value = "";
any method can correct above code ????
That will only work if they are in the same frame. Since you're working with multiple frames, you'll have to use parent.framename.form.field.value.