Question
1. Present the user with with an XHTML page cntaining two text entry areas. 2. The user will input values in each, then select a
1. Present the user with with an XHTML page cntaining two text entry areas.
2. The user will input values in each, then select a button that calls a JavaScript function.
3. The function will search the second data entry for the first data entry. In other words, it will search the second string entered to see whether it contains the first string entered.
4. The application will require that your script detect the text entries made by the user.
5. Use the script below to complete.
//alert("script running");
function search(sub, string){
alert("function runs");
//indexOf method is found on page 6-12
}
CIW JavaScript Specialist
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started