Prompt Input Dialog : Dialog : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Dialog »

 

Prompt Input Dialog



<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("Your name is "+the_name+"!");
}else{
    document.write("Your name needs to start with an uppercase S to be displayed!");
}
//-->
</SCRIPT>
</BODY>
</HTML>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Dialog