Java Related Knowledge

Wednesday, September 15, 2004

Using a prompt box and Document Write (JScript)

<html>

<head>
<title>Docment Write</title>
<script language="JavaScript">

var name = prompt ("Please Enter Your Name.","Your Name Goes Here");

if (name == null name == "Your Name Goes Here"){
alert ("Click the link and try again");
}

else {
alert (name);
}


</script>


</head>

<body >
<b>Hello There
<script language="JavaScript"> document.write(name); </script>
</b>
</body>

</html>


Posted by Wasif at 2:20 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Pages

  • Home

Blog Archive

  • ►  2013 (1)
    • ►  March (1)
  • ►  2012 (17)
    • ►  December (6)
    • ►  November (11)
  • ►  2010 (3)
    • ►  December (2)
    • ►  March (1)
  • ▼  2004 (17)
    • ▼  September (17)
      • Changing the authentication mode in SQL Server
      • Microsoft SQL Server 2000 Authentication Mechanisms
      • Problem connecting MS SQL Server using JDBC
      • Solution for project folder not loading in tomcat 5
      • project folder not loadin in the tomcat 5.0
      • Tomcat service not starting.
      • HTML Events Objectwise
      • Important links
      • HTML DOM Document Object
      • HTML DOM Window Object
      • HTML DOM Select Object
      • Select Box One (JScript)
      • Select Box One (JScript)
      • Using a prompt box and Document Write (JScript)
      • Using Confirm box (JScript)
      • Multiple Parameters passing to function (JScript)
      • Simple check box toggle (JScript)
Simple theme. Powered by Blogger.