Click to See Complete Forum and Search --> : On Change question
mart37
Dec 5th, 2000, 12:51 PM
Is there a line that means the same thing as that but it doesn't spelled the same?
Cause i am trying to execute it in Netscape, and he will not take it
parent.frames.bottomMenu.document.frmClub.Club.options[0].selected = true;
Thanxs all
Ianpbaker
Dec 6th, 2000, 03:01 AM
hi mart37
the onchange event on a tag is exactly the same in netscape as it is in IE, post all your code and i'll have a look to see why it ain't working.
Ian
Mark Sreeves
Dec 6th, 2000, 03:30 AM
I just tried it in Netscape 3,4 and 6 and it works ok!
<HTML>
<head>
<script language=javascript>
var k = 0;
function doIt()
{
parent.frames.bottomMenu.document.frmClub.Club.options[k].selected = true;
k++;
}
</script>
</head>
<BODY>
<form>
<input type="button" onClick="doIt();">
</form>
</body>
</HTML>
[Edited by Mark Sreeves on 12-06-2000 at 04:33 AM]
mart37
Dec 6th, 2000, 08:36 AM
Yeah it's because i have to do a submit command before
that goes like this
eval("document." + formto +".submit();");
So in Netscape wonce i do this command, it's impossible to
change the value in the combo in that exact form.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.