Skip to main content

Dynamic Welcome Page in JavaScript

To create a dynamic welcome page that obtains the  user's name, then diplays it on the page. The script uses another predefined dialog box from window object(a prompt dialog) which allows the user to input a value that the script can use. The program asks the user to input a name, then displays the name in the XHTML document.

<html>
  <head>
    <title>Using Prompt and Alert Boxes</title>
    <script type = "text/javascript">
      <!--
      var name; //string entered by the user
   
      name = window.prompt( "Please enter your name" );
   
      document.writeln( "<h1> Hello, " + name + ",
              welcome to JavaScript programming!</h1>" );
      // -->
    </script>
  </head>
  <body>
    <p>Click Refresh to run this script again.</p>
  </body>
</html>

A declaration that contains the JavaScript keyword var. Keywords are words that have special meaning in JavaScript. The keyword var at the beginning of the statement indicates that the word name is a variable. A variable is a location in the computer's memory where a value can be stored for use by a program.

Popular posts from this blog

List of software companies in Chennai

List of software companies in Chennai India's Information technology is an industry consisting of IT services and business process outsourcing(BPO). In india information technology is playing an important role, IT sector in India is generating more than 3 million employment. IT & ITeS industry in India has grown enormously. Indian Information Technology has made a mark in the world. Many MNC's are started branches in Indian cities like Bangalore, Chennai, Delhi etc,. The below table shows you list of software companies in Chennai. 4i Apps Solutions Pvt Ltd http://www.4iapps.com Abra Technologies http://www.abratechnologies.com Accel Frontline Ltd http://www.accelfrontline.in Adrenalin eSystems Ltd http://www.myadrenalin.com Akmin Technologies Pvt Ltd http://www.akmin.com American Megatrends India Pvt Ltd http://www.amiindia.co.in Anantara Solutions Pvt Ltd http://www.anantsol.com Arrowpoint Technologies Pvt Ltd http://www.arrowpointtechn...

Freshers Openings at EMC as Systems Engineer On Dec 2014

Company      EMC Corporation Website       www.emc.com Eligibility      BE/B.Tech/M.Tech/MCA Experience    Freshers Location        Bangalore Job Role       Systems Engineer JOB SUMMARY: Company profile : EMC provides the technologies and tools that can help you release the power of your information. We can help you design, build, and manage flexible, scalable, and secure information infrastructures. And with these infrastructures, you'll be able to intelligently and efficiently store, protect, and manage your information so that it can be made accessible, searchable, shareable, and, ultimately, actionable. Job Description: Candidate Profile: 1. Candidate should possess B.Tech/M.Tech/MCA degree from a recognised university. 2. Should have good Time management skills, Organizational skills, Cross-Functional skills. 3. Excellent Communication skills. 4. Ability to in...

Dataset Profiles - Resource Profile in Mainframe

Datasets can be protected using dataset profile. a). Discrete Dataset A Discrete dataset profile protects only a single dataset. Usually very sensitive datasets are protected using discrete dataset profile. Creating a Dataset Profile -> ADDSD 'usr001.Jcl.ps' UACC(NONE) NOTIFY(usr001) Permit userID to access the datasets. -> PE 'usr001.JCL.ps' ID(Demo06) ACCESS(UPDATE) Change Access Authority. -> ALTDSD 'usr001.JCL.ps' UACC(READ) NOtify(usr001) b) Generic Dataset A generic dataset profile protects more than one datasets. Generic dataset profiles than one datasets. Generic dataset & profiles exploit the similarity in the name of the datasets. Creating a Generic Dataset Profile -> ADDSD 'RRSREE.**' UACC(NONE) NOTIFY(usr001) -> SETR GENERIC(DATASET) REFRESH Modifying Dataset Protection -> ALTDSD 'sys1.**' NOTIFY(DAVIN5) UACC(READ) Allowing users to access datasets. -> PERMIT|PE 'SYS1.*...