i am trying to make a script for a website of mine, the goal i’m trying to acheive is to make a greeting message.
first of all i want a prompt box to come up saying what is your clan name, and if they enter elfwoods then a alert box to come up saying your a member welcome.
but if they enter something differnt or nothing i want a alert box to say your a enemy leave.
this is a script i made my self but it dosnt work in the way i wanted can anyone help?
<script type=”text/javascript”>
<!–
var userName = prompt(“Please enter your clan name.”, “”);
if ( (userName >= “elfwoods”) || (userName == null) ) {
alert(“Welcome you are a member”);
}
else {
alert(“your an enemy leave”);
}
//–>
</script>
i apologise for my lack of knowlage in javascript but i only started lerning yesterday.
thanks alot javan00b