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

What is the Data Normalization? Also define its goal. Data normalization is to sort out complex data within easy form. It uses to simplify the complex information to form it mo


What is a variable in Java program? It's a memory location. Memory location is given some name. Memory location is being assigned some value. Value may change o

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

Develop Program using Interactive Brokers API Project Description: We require a Matlab function using the Interactive Brokers API for real time trading with three arguments:


The LookupDispatchAction is a subclass of DispatchAction. It does a reverse lookup on the resource package to get the key and then gets the method whose name is associated with the

How can I convert Dijkstra''s algorithm to do max flow instead of min flow, and how can I implement it into Ford Fulkerson algorithm?

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum