You can't have a javascript as a form action. What you can do though is use the form "onSubmit" attribute to pass the information to another page (or accomplish your function).
So, your page would look like this:
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<SCRIPT language="JavaScript">
function check() {
if(document.forms["check"].keyword.value.toLowerCase() == "kimberly"){
{document.write("<b>Taken</b>")}
if(document.forms["check"].keyword.value.toLowerCase() == "jennifer"){
{document.write("<b>Taken</b>")}
else {document.write("<b>Available</b>")}
}
}
</SCRIPT>
<form action="" method="get" name="check" onsubmit="check(); return false;">
<p>
<input name="keword" type="text" id="keword" size="30" maxlength="40">
<input type="submit" value="Check Username Availability">
</p>
</form>
</body>
</html>
Hope this helps.
Bookmarks