Priya,
Which version of Netscape are you using? I tested your script in Netscape
6 and it works fine. There are a couple of things that you would like to
verify and fix probably..
1) You are not closing <OPTION> tag with </OPTION>
2) Usually, you would look for the text of a selected index by
document.formname.selectboxname.options
[document.formname.selectboxname.selectedIndex].value
2)You would like to check if selectbox supports onClick event. When I
changed the onClick event to onChange, the script was working in Netscape
4.7....
But even without any changes, it works in Netscape 6.0
> Hi friends,
> In the HTML page I accept a value from a combobox(s1) & writes in the
textfield(t1).This works well in ie but in netscape it creates some
problem. The textfield(t1) contains the null value in the textbox instead
of the s1 value. And also, the size of the page vary in netscape. some
fields are not displayed and some fields sizes are changed.please tell me
what to do? give me some useful ideas.
> The sample code is given below. //SAMPLE CODE
> <form method=post name=f1 action=" ">
> Enter User Name1: <select name=s1 onclick="asd()" >
> <option value=n1>n1
> <option value=n2>n2
> <option value=n3>n3
> </select>
> Enter User Name2: <input type=text name=p1 size=20 value=" " >
> <input type=submit value="submit" >
> </form>
> <script language=javascript>
> function asd()
> {document.f1.p1.value=document.f1.s1.value;} </script>
>
> Thanks in advance.
>
> ----bye from priya
>
>