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 function arguments with the help of an example? Arguments on a function are comma separated list of data enclosed within braces. It describes interface among the web pa

Get info from website using javascript Project Description: I need to extract the text from all the available (red, blue) seats of all the events on this site without getting

Design A Word document/ report containing program design documentation, including UML diagrams (Use case, class and sequence) and written descriptions of each class or module

What Is a Socket in Java Networking and RMI? Ans) A socket is one end-point of a two-way communication link among two programs running on the network. A socket is bound to a por

Why are JSP pages the preferred API for creating a web-based client program? Because no plug-ins or security policy files are required on the client systems (applet does). Also,

Explain what occur when an object is created in Java?


LookupDispatchAction is useful if the method name in the Action is not driven by its name in the front end, but by the Locale independent key into the resource bundle. As the key i

What is "My Personal Agent"? My personal agent is a computer programme which work automatically and have voice interface.