Unless you have a special purpose in mind, 'ondblclick()' is probably not a good choice because users rarely double-click on a 'Submit' button since all that's needed is a single click. So use 'onclick' instead and have the function it calls return a true or false value: 'true' if the form should be submitted to the 'action', and 'false' if the user should be kept at the page where the form resides. As in:
Code:
<head>
<title>Registratie</title>
<script type="text/javascript">
function myfunction()
{
alert("test");
var value = true;
if (something == bad) { value = false; }
return value;
}
</script>
</head>
<body>
Vul deze form in om je aan te melden voor de Kalender.
<form action="regcheck.php" method="post">
Gebruikers Naam<br>
<input type="text" size="15" name="ruser" id="ruser" ><br>
Persoonlijk Wachtwoord<br>
<input type="text" size="15" id="rpassword" name="rpassword"><br>
<input type="submit" onclick="return myfunction();" id="submits" value="Aanmelden">
</form>
</body>
Rick Trethewey
Rainbo Design
Bookmarks