Heel vreemd JavaScript probleem...

[code:1:09daa243ab]

<html>
<head>
<title>Aanmelden</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="standaard.css" rel="stylesheet" type="text/css">
<script language="JavaScript">

function CheckPass()
{
var pass1 = document.forms[0].elements[1].value;
var pass2 = document.forms[0].elements[2].value;
if (pass1 != pass2)
{
window.alert("De twee wachtwoord velden moetten indentiek zijn.")
return false;
}
document.forms[0].submit();
return true;
}

</script>
</head>

<body leftmargin="30">
<h2>Aanmelden</h2><form action="" method="post" name=form1"><fieldset>
<legend>Inlog gegevens</legend>
<table border="0">
<tr><td width="50"><p>Gebruikersnaam:</p></td><td><input type="text" name="form[user]"></td></tr>
<tr><td><p>Wachtwoord: </p></td><td><input type="password" name="form[pass1]"></td></tr>
<tr><td><p>WW Controle: </p></td><td><input type="password" name="form[pass2]"></td></tr>
<tr><td colspan="2"><p class="onderschrift"><font color="#FF0000">Let op! De 2 password velden moetten overeen komen</font></p></td></tr>
</table>
</fieldset>

	  &lt;br&gt;
	  
	  &lt;fieldset&gt;
	  &lt;legend&gt;Persoonlijke gegevens&lt;/legend&gt;
	  &lt;table border=&quot;0&quot;&gt;
	  &lt;tr&gt;&lt;td width=&quot;50&quot;&gt;&lt;p&gt;Voornaam&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;voornaam&#93;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Achternaam&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;achternaam&#93;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Geslacht&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;form&#91;geslacht&#93;&quot; value=&quot;m&quot;&gt;Man &lt;input type=&quot;radio&quot; name=&quot;form&#91;geslacht&#93;&quot; value=&quot;v&quot;&gt;Vrouw&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Gewicht&#58;&lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;gewicht&#93;&quot; size=&quot;5&quot;&gt;&#40;kilo&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Lengte&#58; &lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;lengte&#93;&quot; size=&quot;5&quot;&gt;&#40;cm&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Leeftijd&#58; &lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;leeftijd&#93;&quot; size=&quot;5&quot;&gt;&#40;jaren&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;/table&gt;
	  &lt;/fieldset&gt;
	  
	  &lt;br&gt;
	  
	  &lt;fieldset&gt;
	  &lt;legend&gt;Email&lt;/legend&gt;
	  &lt;p&gt;Email&#58; &lt;input type=&quot;text&quot; name=&quot;form&#91;email&#93;&quot;&gt;&lt;/p&gt;
	  &lt;/fieldset&gt;
	  
	  &lt;input type=&quot;button&quot; value=&quot;Meld aan -&amp;gt;&quot; onClick=&quot;javascript&#58;CheckPass&#40;&#41;&quot;&gt; &lt;/form&gt;&lt;/body&gt;

</html>
[/code:1:09daa243ab]

Deze code werkt wel in Safari, maar niet in IE. Heb deze vraag ook al eerder gesteld, maar kon er ondanks hulp niet uit komen…

deze regel:

[b:1facc15d26]<h2>Aanmelden</h2><form action="" method=“post” name=[u:1facc15d26][/u:1facc15d26]form1"><fieldset>[/b:1facc15d26]

mist volgens mij een aanhalingsteken. Het moet denk ik zijn:

[b:1facc15d26]<h2>Aanmelden</h2><form action="" method=“post” name=[u:1facc15d26]"[/u:1facc15d26]form1"><fieldset>[/b:1facc15d26]

Zal vanmiddag gelijk kijken of dat het was! ik laat nog even van me horen!!!

Dat was het dus niet... helaas...

Ik heb het al opgelost, blijkt dat IE bij 1 begint met tellen, en de rest bij 0.....

[code:1:f74787d036]
<html>
<head>
<title>Aanmelden</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="standaard.css" rel="stylesheet" type="text/css">
<script language="JavaScript">

function CheckPass()
{
var pass1 = document.forms[0].formpass1.value;
var pass2 = document.forms[0].formpass2.value;
if (pass1 != pass2)
{
window.alert("De twee wachtwoord velden moetten indentiek zijn.")
return false;
}
document.forms[0].submit();
return true;
}

</script>
</head>

<body leftmargin="30">
<h2>Aanmelden</h2><form action="" method="post" name="form1"><fieldset>
<legend>Inlog gegevens</legend>
<table border="0">
<tr><td width="50"><p>Gebruikersnaam:</p></td><td><input type="text" name="form[user]"></td></tr>
<tr><td><p>Wachtwoord: </p></td><td><input type="password" name="formpass1"></td></tr>
<tr><td><p>WW Controle: </p></td><td><input type="password" name="formpass2"></td></tr>
<tr><td colspan="2"><p class="onderschrift"><font color="#FF0000">Let op! De 2 password velden moetten overeen komen</font></p></td></tr>
</table>
</fieldset>

	  &lt;br&gt;
	  
	  &lt;fieldset&gt;
	  &lt;legend&gt;Persoonlijke gegevens&lt;/legend&gt;
	  &lt;table border=&quot;0&quot;&gt;
	  &lt;tr&gt;&lt;td width=&quot;50&quot;&gt;&lt;p&gt;Voornaam&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;voornaam&#93;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Achternaam&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;achternaam&#93;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Geslacht&#58;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;form&#91;geslacht&#93;&quot; value=&quot;m&quot;&gt;Man &lt;input type=&quot;radio&quot; name=&quot;form&#91;geslacht&#93;&quot; value=&quot;v&quot;&gt;Vrouw&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Gewicht&#58;&lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;gewicht&#93;&quot; size=&quot;5&quot;&gt;&#40;kilo&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Lengte&#58; &lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;lengte&#93;&quot; size=&quot;5&quot;&gt;&#40;cm&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;tr&gt;&lt;td&gt;&lt;p&gt;Leeftijd&#58; &lt;/p&gt;&lt;/td&gt;&lt;td nowrap&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;form&#91;leeftijd&#93;&quot; size=&quot;5&quot;&gt;&#40;jaren&#41;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
	  &lt;/table&gt;
	  &lt;/fieldset&gt;
	  
	  &lt;br&gt;
	  
	  &lt;fieldset&gt;
	  &lt;legend&gt;Email&lt;/legend&gt;
	  &lt;p&gt;Email&#58; &lt;input type=&quot;text&quot; name=&quot;form&#91;email&#93;&quot;&gt;&lt;/p&gt;
	  &lt;/fieldset&gt;
	  
	  &lt;input type=&quot;button&quot; value=&quot;Meld aan -&amp;gt;&quot; onClick=&quot;javascript&#58;CheckPass&#40;&#41;&quot;&gt; &lt;/form&gt;&lt;/body&gt;

</html>
[/code:1:f74787d036]

Zo ie ie geworden.