Question
implement a program that reads a word and opens one of the following web pages based on the word provided: (name it file 1.html) Word
implement a program that reads a word and opens one of the following web pages based on the word provided: (name it file 1.html)
Word Site
Twitter twitter web site
Facebook Facebook web site
yahoo yahoo web site
If the provided word is not part of the above table, your program will open a page called error.html. The error.html page is a page you will define that will display the message "We cannot process your request". Use the
tags to display the message and include a picture that you like indicating a failure occurred. Using window.open to open a web site (e.g., window.open("http://www.google.com/");).
(name it file 2.html) implement a program that reads a word and a search engine name (either google or bing). If an invalid search engine name is provided, display the message "Invalid engine" using alert. If a valid engine name is provided, perform a search using the specified search engine. To search using google append the word to search to the end of the string https://www.google.com/search?q= and use window.open with the resulting string. To search using bing, follow a similar approach using https://search.bing.com/search?p=
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