PDA

View Full Version : onclick error, works on mac not in windows


Steven_Smith
08-16-2002, 07:42 PM
This is a simple script. All I am doing is that if the user clicks on form 'test' form 'mod' has a value changed. I can't see why its not working in ie6 windows...


<script>
function mod(){
document.mod.mod.value="1";
}
</script>

<form name="test" onClick="mod()">
<input type="text" name="a" value="a"> <!-- when the user clicks here -->
</form>


<form name="mod">
<input type="text" name="mod" value="0"> <!-- THIS value changes to 1 -->
</form>

Thanks for any help :thumbsup:

landon11
08-16-2002, 07:47 PM
if you change the names to mod1, mod2, mod3 its works.

Steven_Smith
08-16-2002, 07:53 PM
:thumbsup: :thumbsup: :thumbsup:

Thanks man. That was so easy, i wish I could just delete this embarising question... :o

brothercake
08-16-2002, 09:09 PM
Well actually you can .... but I deleted an embarrasing post once and then regretted it afterwards ... there's no shame in admitting lack of knowledge and you never know who else might be making the same "silly" mistake who benefits from reading a post like this