Create an embedded javascript function, JAVA Programming

Given the following XHTML page:

 

Create an embedded JavaScript function named getUserInfo that prompts the user with the following two questions after the XHTML page has loaded:

  • What is your full name?
  • How old are you?

The function should then build a string in the form of:

Hi, my name is FULL-NAME and I'm XX years old.

The string must then be inserted into the container div with id: content.

Note that your XHTML page must validate as 1.0 Strict - as such, make any needed additions to the XHTML code above.

Posted Date: 3/18/2013 2:50:48 AM | Location : United States







Related Discussions:- Create an embedded javascript function, Assignment Help, Ask Question on Create an embedded javascript function, Get Answer, Expert's Help, Create an embedded javascript function Discussions

Write discussion on Create an embedded javascript function
Your posts are moderated
Related Questions
The File class encapsulates the files and directories of the local file system. The RandomAccessFile class gives the methods required to directly access data contained in any part

Describe the concept of Encapsulation  Encapsulation is a technique which is used for hiding properties and behaviors of an object and allowing outside access only as appropria

Write HTML and JavaScript code for the needs shown in the diagram below? When ConvertoUpperCase button is pressed then the entered text is converted to upper case and result is

ActionForm is javabean which shows the form inputs containing the request parameters from the View referencing the Action bean.

#question.Write a program that computes the edit distance (also called the Levenshtein distance, for its creator Vladimir Levenshtein) between two words. The edit distance between

The Spring container is able to autowire relationships among collaborating beans. This means that it is possible to automatically let Spring resolve collaborators (other beans) for

Students will design, develop, test and document a Java application that reads data from an input file, processes the data, and then writes the processed data to an output file. CM

Question: A new software engineer has joined Axistex Ltd. The systems analyst informs him that the organisation works with different operating system. The HR department works w

Why do we need wrapper classes? It is sometimes simpler to deal with primitives as objects. Moreover most of the collection classes keep objects and not primitive data types. A

15. Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers and found that approximately 14 percent of those surveyed purchase one or more energy dr