<HTML>
<HEAD>
<SCRIPT language="JavaScript">
var the_name=window.prompt("What is your name?","");
first_char=the_name.charAt(0);
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript">
if (first_char=="S"){
document.write("Start with letter S");
}else{
document.write("Not start with an uppercase S");
}
</SCRIPT>
</BODY>
</HTML>
|