Javascript noob needs help

admin

Administrator
Staff member
been staring at this for hours and cant figure it out. It will probably take a veteran about 5 seconds to see the problem.

i need to use onBlur and alert to show what user entered in the field.

Here is the script. I greatly appreciate any help



<HTML>
<HEAD>
<TITLE> Excercise 4 </TITLE>


</HEAD>
<script language=javascript1.2>



function party_bar() {
status=("Republican, Democrat, Independant or Undeclared ");}

function party_message() {
var answer;
answer = getparty.value
alert(answer);
return answer;}

</script>
<BODY onLoad= "status='This is an online political survey'">

<FORM >
What is your Name?
<input name="name" size=30 maxlength=40><BR>

What is your political party?
<input type="text" value=http://www.webdeveloper.com/forum/archive/index.php/answer name=party size="30" onFocus="party_bar()" onBlur="party_message()"><BR>
</FORM>

</BODY>
</HTML>
 
Back
Top