Write a xhtml document with java script, JAVA Programming

Write an XHTML document that uses JavaScript code to do the following.  The user is first prompted for a word and then for a possible prefix for that word.  If the prefix is not an empty string, then  it outputs the word itself and the prefix in the form:

outside has the prefix "out"

If the input to the previous prompt  dialog is an empty string then it skips the previous output and the user is  prompted for a possible suffix for the first word.  It then outputs the word itself and the suffix in the form:

outside has the suffix "side"

as shown by the five snapshots of my browser window. A prefix and suffix can be one or more characters long.

Posted Date: 2/23/2013 4:38:01 AM | Location : United States







Related Discussions:- Write a xhtml document with java script, Assignment Help, Ask Question on Write a xhtml document with java script, Get Answer, Expert's Help, Write a xhtml document with java script Discussions

Write discussion on Write a xhtml document with java script
Your posts are moderated
Related Questions
Explain Multiple Initializers and Incrementers ? Sometimes it's essential to initialize several variables before starting a for loop. Similarly you may need to increment more t

Struts is a framework with set of co operating servlets, classes and JSP tags that create a reusable MVC 2 design.     1. Client (Browser) : A request from the cli


1. Which of the following are not valid Java identifiers, and why? (a) wolVes (b) United(there is only one) (c) 87 (d) 5 3 (e) Real ale (f) isFound?by 2. A cla

.java coding for linear programming

What is JDBC exactly? Describe the steps required to execute a SQL query using JDBC.

Collaboration diagrams are also communication diagrams. Collaboration diagrams give the same message as the sequence diagrams. But the collaboration diagrams depend on the object f

Write a program in Javascript that will read in an XML file. This file will contain details of devices maintained by the IT department of an organisation including an ID number, de

A framework for building server-side user interfaces for Web applications is written in the Java programming language.

Give an example for Using Getter Methods ? class CarTest6 { public static void main(String args[]) { Car c = new Car(); c.setLicensePlate("New York A45 636"); c.setMa